FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ews-coordinator
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gilligan Lab for Epidemiology and Modelling
Wheat rusts
ews-coordinator
Commits
447b5482
Commit
447b5482
authored
2 years ago
by
L. Bower
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configs/docker/build/Dockerfile
+15
-3
15 additions, 3 deletions
configs/docker/build/Dockerfile
configs/docker/run/runDockerEWS.sh
+1
-1
1 addition, 1 deletion
configs/docker/run/runDockerEWS.sh
with
16 additions
and
4 deletions
configs/docker/build/Dockerfile
+
15
−
3
View file @
447b5482
# 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
This diff is collapsed.
Click to expand it.
configs/docker/run/runDockerEWS.sh
+
1
−
1
View file @
447b5482
...
...
@@ -26,7 +26,7 @@ do
shift
2
;;
-h
|
--help
)
"This is a launch script, example usage:
\n
runDockerEWS.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
;;
--
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment