Move cproc venv to root

This commit is contained in:
Daimakaimura
2023-05-18 08:46:50 +01:00
parent cee707220a
commit 35c18ac220
2 changed files with 3 additions and 3 deletions

View File

@@ -29,8 +29,8 @@ docker build -t wls:0.0.1 .
cd ..
# Prepare container proc monitoring venv
python3 -m venv ./monitoring/container-proc/venv --without-pip
source ./monitoring/container-proc/venv/bin/activate
python3 -m venv ./cproc-venv --without-pip
source ./cproc-venv/bin/activate
curl https://bootstrap.pypa.io/get-pip.py | python
pip3 install -r ./monitoring/container-proc/requirements.txt
deactivate

2
run.sh
View File

@@ -144,7 +144,7 @@ if [ "$metrics_infra" = "container-proc" ];
then
echo "Starting monitoring with probes in the containers"
# Start process level monitoring (in background, will wait to WSL to be created)
. ./monitoring/container-proc/venv/bin/activate
. ./cproc-venv/bin/activate
sudo -E python3 ./monitoring/container-proc/monitor.py &
monitor_pid=$!
fi