From 324c2010bcb2f1484edf0519bd4bf8527b2ba19f Mon Sep 17 00:00:00 2001 From: Jeannette Date: Thu, 9 Nov 2023 13:58:52 -0600 Subject: [PATCH] Remove venv from bin file --- Dockerfile | 2 +- bin/chief-keeper | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 12d5f71..df37a10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,5 +22,5 @@ COPY requirements.txt ./ RUN pip3 install --no-cache-dir -r requirements.txt # Run run-chief-keeper.sh when the container launches -CMD ["/bin/bash", "-c", "./run-chief-keeper.sh"] +CMD ["./run-chief-keeper.sh"] diff --git a/bin/chief-keeper b/bin/chief-keeper index 417aad8..657b2c2 100755 --- a/bin/chief-keeper +++ b/bin/chief-keeper @@ -2,7 +2,12 @@ dir="$(dirname "$0")"/.. -. $dir/_virtualenv/bin/activate || exit +if [ -f "$dir/_virtualenv/bin/activate" ]; then + . "$dir/_virtualenv/bin/activate" +else + echo "Virtual environment not needed." +fi + export PYTHONPATH=$PYTHONPATH:$dir:$dir/lib/pymaker