wakurtosis/build.sh

60 lines
1.4 KiB
Bash
Executable File

# 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