-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sh
executable file
·59 lines (46 loc) · 1.4 KB
/
build.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Install Docker
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin python3-venv
apt-get install -y jq
# Install the suitable kurtosis-cli
required_version=0.70.2
installed_version=`kurtosis version`
if [ "$installed_version" = "$required_version" ]; then
echo "Kurtosis version is up to date : $installed_version"
else
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
sudo apt update
sudo apt-mark unhold kurtosis-cli
sudo apt install kurtosis-cli="$required_version"
sudo apt-mark hold kurtosis-cli
sudo rm /etc/apt/sources.list.d/kurtosis.list
fi
# Build the analysis docker image
cd analysis-module
sh ./build.sh
cd ..
# Build Gennet, WLS and Container-Proc monitoring docker images
cd gennet-module
sh ./build_docker.sh
cd ..
echo "host-proc: setup the venv @ /tmp/host-proc"
python3 -m venv /tmp/host-proc
. /tmp/host-proc/bin/activate
python3 -m pip install -r monitoring/host-proc/requirements.txt
deactivate
echo "host-proc: venv is ready"
cd wls-module
docker build -t wls:0.0.1 .
cd ..
cd monitoring/container-proc
sh ./build.sh
cd ..
# enable as we start using go-waku
#git clone git@github.com:waku-org/go-waku.git
#cd go-waku
#docker build -t gowaku .
#cd ..
#rm -rf go-waku
git clone git@github.com:logos-co/nomos-node.git
docker build -t nomos-node nomos-node
rm -rf nomos-node