Commit f3c89d14 authored by eric pellegrini's avatar eric pellegrini

Added docker files for ubuntu-trusty and ubuntu-bionic

parent 673989f7
Pipeline #3775 failed with stage
in 1 minute and 16 seconds
......@@ -2,45 +2,109 @@ stages:
- ci
- deploy
# ubuntu pipeline
ci:ubuntu_xenial:
############################
# ubuntu trusty pipeline
############################
ci:ubuntu_trusty:
stage: ci
script:
- docker build --force-rm --build-arg MDANSE_GIT_COMMIT=${CI_COMMIT_SHA} -t ci_mdanse_xenial -f ./BuildServer/Docker/Builder/Dockerfile_build .
- docker build --force-rm --build-arg MDANSE_GIT_COMMIT=${CI_COMMIT_SHA} -t ci_mdanse_trusty -f ${CI_PROJECT_DIR}/BuildServer/Docker/Builder/Dockerfile_build .
allow_failure: false
tags:
- docker
- sci
- ubuntu
deploy:ubuntu_trusty:
stage: deploy
script:
- docker build --force-rm -t deploy_mdanse_trusty -f ${CI_PROJECT_DIR}/BuildServer/Docker/Builder/Dockerfile_deploy .
- chmod 755 ${CI_PROJECT_DIR}/BuildServer/Docker/upload_artefacts.sh
- ${CI_PROJECT_DIR}/BuildServer/Docker/upload_artefacts.sh
dependencies:
- ci:ubuntu_trusty
allow_failure: false
only:
- triggers
- tags
- release
- hotfix
- master
- develop
- /^feature-.*$/
- /^bugfix-.*$/
- triggers
- /^release-*$/
- /^hotfix-*$/
when: on_success
artifacts:
paths:
- ./*.deb
tags:
- docker
- sci
- ubuntu
############################
# ubuntu xenial pipeline
############################
ci:ubuntu_xenial:
stage: ci
script:
- docker build --force-rm --build-arg MDANSE_GIT_COMMIT=${CI_COMMIT_SHA} -t ci_mdanse_xenial -f ${CI_PROJECT_DIR}/BuildServer/Docker/Builder/Dockerfile_build .
allow_failure: false
tags:
- docker
- sci
- ubuntu
# ubuntu pipeline
deploy:ubuntu_xenial:
stage: deploy
script:
- docker build --force-rm -t deploy_mdanse_xenial -f ./BuildServer/Docker/Builder/Dockerfile_deploy .
- chmod 755 ./BuildServer/Docker/upload_artefacts.sh
- echo `pwd`
- ./BuildServer/Docker/upload_artefacts.sh
- echo `ls`
- echo `pwd`
- echo ${CI_PROJECT_DIR}
- docker build --force-rm -t deploy_mdanse_xenial -f ${CI_PROJECT_DIR}/BuildServer/Docker/Builder/Dockerfile_deploy .
- chmod 755 ${CI_PROJECT_DIR}/BuildServer/Docker/upload_artefacts.sh
- ${CI_PROJECT_DIR}/BuildServer/Docker/upload_artefacts.sh
dependencies:
- ci:ubuntu_xenial
allow_failure: false
only:
- master
- develop
- triggers
- tags
- release
- hotfix
- /^release-*$/
- /^hotfix-*$/
when: on_success
artifacts:
paths:
- ./*.deb
tags:
- docker
- sci
- ubuntu
############################
# ubuntu bionic pipeline
############################
ci:ubuntu_bionic:
stage: ci
script:
- docker build --force-rm --build-arg MDANSE_GIT_COMMIT=${CI_COMMIT_SHA} -t ci_mdanse_bionic -f ${CI_PROJECT_DIR}/BuildServer/Docker/Builder/Dockerfile_build .
allow_failure: false
tags:
- docker
- sci
- ubuntu
deploy:ubuntu_bionic:
stage: deploy
script:
- docker build --force-rm -t deploy_mdanse_bionic -f ${CI_PROJECT_DIR}/BuildServer/Docker/Builder/Dockerfile_deploy .
- chmod 755 ${CI_PROJECT_DIR}/BuildServer/Docker/upload_artefacts.sh
- ${CI_PROJECT_DIR}/BuildServer/Docker/upload_artefacts.sh
dependencies:
- ci:ubuntu_bionic
allow_failure: false
only:
- master
- develop
- /^feature-.*$/
- /^bugfix-.*$/
- triggers
- /^release-*$/
- /^hotfix-*$/
when: on_success
artifacts:
paths:
- ${CI_PROJECT_DIR}/*.deb
......@@ -49,3 +113,88 @@ deploy:ubuntu_xenial:
- sci
- ubuntu
############################
# osx high sierra pipeline
############################
ci:osx:
stage: ci
script:
- source ${CI_PROJECT_DIR}/BuildServer/Unix/definitions_macos.sh
- source ${CI_PROJECT_DIR}/BuildServer/Unix/version.sh
- ${CI_PROJECT_DIR}/BuildServer/Unix/build.sh
- ${CI_PROJECT_DIR}/BuildServer/Unix/tests.sh
allow_failure: false
artifacts:
paths:
- ${CI_PROJECT_DIR}/BuildServer/Unix/Build_macOS
expire_in: 1 day
tags:
- sci
- osx-10.13
deploy:osx:
stage: deploy
script:
- source ${CI_PROJECT_DIR}/BuildServer/Unix/definitions_macos.sh
- source ${CI_PROJECT_DIR}/BuildServer/Unix/version.sh
- ${CI_PROJECT_DIR}/BuildServer/Unix/deploy_macos.sh
dependencies:
- ci:osx
allow_failure: false
only:
- master
- develop
- triggers
- /^release-*$/
- /^hotfix-*$/
when: on_success
artifacts:
paths:
- ${CI_PROJECT_DIR}/BuildServer/*.dmg
tags:
- sci
- osx-10.13
############################
# windows 10 pipeline
# "call" is mandatory, see https://gitlab.com/gitlab-org/gitlab-runner/issues/1051
############################
ci:windows:
stage: ci
script:
- call ${CI_PROJECT_DIR}\\BuildServer\\Windows\\definitions.bat
- call ${CI_PROJECT_DIR}\\BuildServer\\Windows\\version.bat
- call ${CI_PROJECT_DIR}\\BuildServer\\Windows\\build.bat
- call ${CI_PROJECT_DIR}\\BuildServer\\Windows\\tests.bat
allow_failure: false
artifacts:
paths:
- ${CI_PROJECT_DIR}\\BuildServer\\Windows\\Build
expire_in: 1 day
tags:
- sci
- windows-10
deploy:windows:
stage: deploy
script:
- call ${CI_PROJECT_DIR}\\BuildServer\\Windows\\definitions.bat
- call ${CI_PROJECT_DIR}\\BuildServer\\Windows\\version.bat
- call ${CI_PROJECT_DIR}\\BuildServer\\Windows\\deploy.bat
dependencies:
- ci:windows
allow_failure: false
only:
- master
- develop
- triggers
- /^release-*$/
- /^hotfix-*$/
when: on_success
artifacts:
paths:
- ${CI_PROJECT_DIR}\\BuildServer\\*.exe
tags:
- sci
- windows-10
......@@ -2,5 +2,8 @@ FROM ci_mdanse_xenial
SHELL ["/bin/bash", "-c"]
VOLUME builds
RUN source ./BuildServer/Unix/definitions_debian.sh ; source ./BuildServer/Unix/version.sh ; ./BuildServer/Unix/deploy_debian.sh
FROM ubuntu:bionic
RUN export DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y --no-install-recommends fakeroot
RUN apt-get install -y --no-install-recommends git
RUN apt-get install -y --no-install-recommends graphviz
RUN apt-get install -y --no-install-recommends dos2unix
RUN apt-get install -y --no-install-recommends texlive-full
RUN apt-get install -y --no-install-recommends texlive-latex-extra
RUN apt-get install -y --no-install-recommends libnetcdf-dev
RUN apt-get install -y --no-install-recommends g++
RUN apt-get install -y --no-install-recommends cython
RUN apt-get install -y --no-install-recommends python-dev
RUN apt-get install -y --no-install-recommends python-wxmpl
RUN apt-get install -y --no-install-recommends python-vtk
RUN apt-get install -y --no-install-recommends python-nose
RUN apt-get install -y --no-install-recommends python-sphinx
RUN apt-get install -y --no-install-recommends pyro
FROM ubuntu:trusty
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y --no-install-recommends fakeroot
RUN apt-get install -y --no-install-recommends git
RUN apt-get install -y --no-install-recommends graphviz
RUN apt-get install -y --no-install-recommends dos2unix
RUN apt-get install -y --no-install-recommends texlive-full
RUN apt-get install -y --no-install-recommends texlive-latex-extra
RUN apt-get install -y --no-install-recommends libnetcdf-dev
RUN apt-get install -y --no-install-recommends g++
RUN apt-get install -y --no-install-recommends cython
RUN apt-get install -y --no-install-recommends python-dev
RUN apt-get install -y --no-install-recommends python-wxmpl
RUN apt-get install -y --no-install-recommends python-vtk
RUN apt-get install -y --no-install-recommends python-nose
RUN apt-get install -y --no-install-recommends python-sphinx
RUN apt-get install -y --no-install-recommends pyro
......@@ -2,7 +2,7 @@ FROM ubuntu:xenial
RUN apt-get update
RUN apt-get upgrade
RUN apt-get upgrade -y
RUN apt-get install -y --no-install-recommends fakeroot
RUN apt-get install -y --no-install-recommends git
......
#!/bin/bash
docker build --force-rm -t docker.ill.fr/scientific-software/mdanse:$1 -f $2/Dockerfile .
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