Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lifeware
biocham
Commits
792a196c
Commit
792a196c
authored
Dec 14, 2018
by
SOLIMAN Sylvain
Browse files
trying some stuff for versioned Docker images
parent
70e180b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
792a196c
...
...
@@ -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
...
...
tmpnb/lifeware_biocham/Dockerfile
View file @
792a196c
...
...
@@ -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/
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment