FAQ | This is a LIVE service | Changelog

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

adding new lib to docker image

parent b5dcf0f0
No related branches found
No related tags found
No related merge requests found
......@@ -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 python3.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
......
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;
......@@ -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
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