-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.sh
executable file
·39 lines (33 loc) · 1.19 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
apt-get update && \
apt-get install -y curl && \
apt-get install -y git && \
apt-get install -y g++ && \
apt-get install -y make && \
apt-get install -y python3.8 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* &&
# Install Node.js 18.12.1
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash &&
export NVM_DIR="$HOME/.nvm" &&
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" && # This loads nvm bash_completion
nvm install 18.12.1 && nvm use 18.12.1 &&
# Setup mx
git clone https://github.com/graalvm/mx.git &&
export PATH="$(realpath ./mx/):${PATH}" &&
# Install Graal JDK
mx -y fetch-jdk --java-distribution labsjdk-ce-19 --to ./labsjdk-ce-19 &&
export JAVA_HOME="$(realpath ./labsjdk-ce-19/labsjdk-ce-19-jvmci-23.0-b04)" &&
# Install nodeprof.js
mkdir nodeprof-graalvm && \
cd nodeprof-graalvm && \
git clone https://github.com/pmoosi/nodeprof.js.git && \
cd nodeprof.js && \
git checkout pp-gadget && \
mx sforceimports && \
mx build && \
cd ../.. &&
# Set environment variables for node and nodeprof
# ./setup_GRAAL_NODE.sh
export THE_TOOL_HOME=$(realpath ./the-tool)/