FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit dba46b94 authored by L. Bower's avatar L. Bower
Browse files

more Docker file work

parent c6abc9e0
No related branches found
No related tags found
No related merge requests found
cp ../../conda/conda-env-py3EWS-withbuilds.yml .;
# note that if you want to build an image that runs with your credentials, override the following variables when
# building the image:
# sudo docker build -t ews_coordinator --build-arg GNAME=lb584 --build-arg UNAME=lb584
# --build-arg UID=1001 --build-arg GID=1001 -f Dockerfile .
# the docker container will run commands using this user and group, and will have access to the relevant filesystems
# that are mounted. If the default command is run, the user credentials are set to be those of the Cam group server
sudo docker build -t ews_coordinator -f Dockerfile .;
rm -v conda-env-py3EWS-withbuilds.yml;
#note this script only works if run in the project docker image, or an environment with the necessary paths and
# software installed
# note this script only works if run in the project docker image, or an environment with the necessary paths and
# software installed. it writes files to a unix tmp dir and is not intended to be used for diagnostic testing, just
# checking the installation is working
source /storage/app/miniconda3/bin/activate /storage/app/EWS_prod/envs/conda/py3EWS/
......@@ -22,5 +23,5 @@ export PYTHONPATH=$PYTHONPATH:$flagdir:$epimodel:$advisory:$met_processing:$met_
echo $PYTHONPATH
tempdir=`mktemp -d`
python3 -m coverage run run_test_suite.py $tempdir
tempdir=$(mktemp -d)
python3 -m coverage run run_test_suite.py "$tempdir"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment