From d2cd709122de646df4807721c1e7d0fc8ced11ac Mon Sep 17 00:00:00 2001 From: lb584 <lb584@cam.ac.uk> Date: Wed, 28 Jun 2023 14:39:29 +0100 Subject: [PATCH] making the DOckerfile a template, people using it should make a copy and override the UID and GID variables for their machine --- configs/docker/build/{Dockerfile => Dockerfile_template} | 0 configs/docker/build/build.sh | 2 +- configs/docker/run/launchDocker_template.sh | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename configs/docker/build/{Dockerfile => Dockerfile_template} (100%) diff --git a/configs/docker/build/Dockerfile b/configs/docker/build/Dockerfile_template similarity index 100% rename from configs/docker/build/Dockerfile rename to configs/docker/build/Dockerfile_template diff --git a/configs/docker/build/build.sh b/configs/docker/build/build.sh index eea4fa4..ecafd8f 100644 --- a/configs/docker/build/build.sh +++ b/configs/docker/build/build.sh @@ -1,3 +1,3 @@ cp ../../conda/conda-env-py3EWS-withbuilds.yml .; -sudo docker build -t ews_coordinator .; +sudo docker build -t ews_coordinator -f Dockerfile; rm -v conda-env-py3EWS-withbuilds.yml; diff --git a/configs/docker/run/launchDocker_template.sh b/configs/docker/run/launchDocker_template.sh index 4ec8bf0..c5cb519 100755 --- a/configs/docker/run/launchDocker_template.sh +++ b/configs/docker/run/launchDocker_template.sh @@ -1 +1 @@ -sudo docker run -it -v "<install_location>/code:/storage/app/EWS_prod/code" -v "<install_location>/regions:/storage/app/EWS_prod/regions" -v "<install_location>/envs/credentials:/storage/app/EWS_prod/envs/credentials" -w "/storage/app/EWS_prod/code" lb584/ews_coordinator +sudo docker run -it -v "<install_location>/code:/storage/app/EWS_prod/code" -v "<install_location>/regions:/storage/app/EWS_prod/regions" -v "<install_location>/envs/credentials:/storage/app/EWS_prod/envs/credentials" -w "/storage/app/EWS_prod/code" ews_coordinator -- GitLab