FAQ | This is a LIVE service | Changelog

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

updating docker config files so they work in the new IaaS machine

parent f3a8e530
No related branches found
No related tags found
No related merge requests found
# syntax=docker/dockerfile:1
FROM ubuntu:18.04 as base_image
#create dirs
WORKDIR /home
RUN mkdir /home/code
#run mkdir as root
RUN mkdir -p /storage/app/EWS_prod/regions/EastAfrica/workspace
RUN mkdir -p /storage/app/EWS_prod/regions/SouthAsia/workspace
#create dirs
WORKDIR /home
#RUN mkdir /home/ewsmanager/code
#copy resources in
COPY ./conda-env-py3EWS-withbuilds.yml .
......@@ -28,3 +30,13 @@ RUN conda env create --file conda-env-py3EWS-withbuilds.yml --prefix /storage/ap
#tidy
RUN rm -v ~/miniconda.sh conda-env-py3EWS-withbuilds.yml;
#these usernames and ids match the production server (IaaS), override when building a local image if needed
ARG GNAME=ews
ARG UNAME=ewsmanager
ARG UID=1006
ARG GID=1008
RUN groupadd -g $GID $GNAME
RUN useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME
USER ewsmanager
WORKDIR /home/ewsmanager
......@@ -26,7 +26,7 @@ do
shift 2
;;
-h | --help)
"This is a launch script, example usage:\nrunDockerEWS.sh -p Deposition -c -c /<path>/config_EastAfrica_fc_live.json -s 20220808"
"This is a launch script, example usage: runDockerEWS.sh -p Deposition -c -c /<path>/config_EastAfrica_fc_live.json -s 20220808"
exit 2
;;
--)
......
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