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
d9d5e65b
Commit
d9d5e65b
authored
1 year ago
by
L. Bower
Browse files
Options
Downloads
Patches
Plain Diff
adding new lib to docker image
parent
b5dcf0f0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configs/docker/build/Dockerfile
+2
-9
2 additions, 9 deletions
configs/docker/build/Dockerfile
configs/docker/build/build.sh
+0
-2
0 additions, 2 deletions
configs/docker/build/build.sh
configs/docker/build/requirements.txt
+1
-0
1 addition, 0 deletions
configs/docker/build/requirements.txt
with
3 additions
and
11 deletions
configs/docker/build/Dockerfile
+
2
−
9
View file @
d9d5e65b
...
...
@@ -4,7 +4,7 @@ FROM ubuntu:24.04 as base_image
SHELL
["/bin/bash", "-c"]
#install system packages
RUN
apt-get update
;
apt-get
install
--assume-yes
python
-dev-is-python3 python3-dev
python3.11-venv wget unzip emacs gdal-bin libgdal-dev build-essential gfortran zlib1g zlib1g-dev libbz2-dev apt-utils liblzma-dev libcurl4-openssl-dev default-jre openssh-server libfribidi-dev libfontconfig1-dev libspatialindex-dev git dos2unix nano rsync
;
RUN
apt-get update
;
apt-get
install
--assume-yes
python
3.11
python3.11-venv wget unzip emacs gdal-bin libgdal-dev build-essential gfortran zlib1g zlib1g-dev libbz2-dev apt-utils liblzma-dev libcurl4-openssl-dev default-jre openssh-server libfribidi-dev libfontconfig1-dev libspatialindex-dev git dos2unix nano rsync
;
RUN
echo
"alias e='emacs -nw
$1
'"
>>
~/.bashrc
;
RUN
alias
ll
=
"ls -ltr"
...
...
@@ -28,20 +28,13 @@ RUN chown -R $UNAME /storage
#swith to the user before installing stuff
USER
$UNAME
#create dirs
WORKDIR
/home
#RUN mkdir /home/ewsmanager/code
#copy resources in
#COPY ./conda-env-py3EWS-nobuilds.yml .
COPY
./requirements.txt .
RUN
echo
"alias e='emacs -nw
$1
'"
>>
~/.bashrc
;
RUN
alias
ll
=
"ls -ltr"
#build the venv
RUN
python3
-m
venv /storage/app/EWS_prod/envs/venv/ews_prod
RUN
python3
.11
-m
venv /storage/app/EWS_prod/envs/venv/ews_prod
RUN
source
/storage/app/EWS_prod/envs/venv/ews_prod/bin/activate
;
pip
install
-r
requirements.txt
RUN
echo
$PYTHONPATH
...
...
This diff is collapsed.
Click to expand it.
configs/docker/build/build.sh
+
0
−
2
View file @
d9d5e65b
cp
../../conda/conda-env-py3EWS-nobuilds.yml .
;
# note that if you want to build an image that runs with your credentials, override the following variables when
# building the image, e.g. for user 'lb584' with GID and UID 1001:
# sudo docker build -t ews_coordinator --build-arg GNAME=lb584 --build-arg UNAME=lb584
...
...
@@ -7,4 +6,3 @@ cp ../../conda/conda-env-py3EWS-nobuilds.yml .;
# 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-nobuilds.yml
;
This diff is collapsed.
Click to expand it.
configs/docker/build/requirements.txt
+
1
−
0
View file @
d9d5e65b
...
...
@@ -9,3 +9,4 @@ HTMLTestRunner-rv==1.1.2
python-docx==1.1.0
rioxarray==0.15.0
Rtree==1.1.0
scikit-learn==1.4.0
\ No newline at end of file
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