Commit 792a196c authored by SOLIMAN Sylvain's avatar SOLIMAN Sylvain
Browse files

trying some stuff for versioned Docker images

parent 70e180b3
......@@ -37,6 +37,8 @@ pages:
- make doc/index.html web/biocham.zip
- mkdir -p public
- cp -r doc devdoc web/* public
- if [[ -n "$CI_COMMIT_TAG" ]] ; then cp public/biocham.zip public/biocham_$CI_COMMIT_TAG.zip ; fi
- cp public/biocham.zip public/biocham_latest.zip
artifacts:
paths:
- public
......@@ -56,7 +58,7 @@ docker:
- if [[ -n "$(docker images -f "dangling=true" -q)" ]] ; then docker rmi $(docker images -f "dangling=true" -q) ; fi
- if [[ -n "$(docker images -q)" ]] ; then docker rmi $(docker images -q) ; fi
- export IMAGE_TAG=$CI_REGISTRY_IMAGE${CI_COMMIT_TAG:+":$CI_COMMIT_TAG"}
- docker build --no-cache -t $IMAGE_TAG tmpnb/lifeware_biocham/
- docker build --no-cache -t $IMAGE_TAG --build-arg tag=${CI_COMMIT_TAG:-latest} tmpnb/lifeware_biocham/
- docker login -u $CI_REGISTRY_USER -p $CI_JOB_TOKEN $CI_REGISTRY
- docker push $IMAGE_TAG
- docker rmi $IMAGE_TAG
......
......@@ -2,13 +2,15 @@ FROM jupyter/minimal-notebook
LABEL Author="Sylvain Soliman <Sylvain.Soliman@inria.fr>"
LABEL Maintainer="Biocham team <biocham@inria.fr>"
ARG tag=latest
USER root
ENV LD_LIBRARY_PATH /usr/local/lib/
ENV PYTHONPATH /home/$NB_USER/biocham/
ENV PATH /home/$NB_USER/biocham:$PATH
RUN cd /home/$NB_USER/ && \
wget https://lifeware.gitlabpages.inria.fr/biocham/biocham.zip && \
wget https://lifeware.gitlabpages.inria.fr/biocham/biocham_${tag}.zip && \
unzip biocham.zip && rm biocham.zip
RUN cd biocham && ./install.sh && apt-get autoremove -y && \
apt-get clean -y && rm -rf /var/lib/apt/lists/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment