Commit cc701c02 authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Use docker image in CI

parent b73dd2fd
Pipeline #9555 passed with stages
in 52 seconds
*
!pyproject.toml
image: boileaum/jupyter
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
stages: stages:
- deps
- test - test
- deploy - deploy
before_script: deps:
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python stage: deps
- source $HOME/.poetry/env tags:
- shell
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker info
- echo "Building $CI_REGISTRY_IMAGE"
- DOCKER_BUILDKIT=1 docker build --pull -t $CI_REGISTRY_IMAGE -f Dockerfile .
- docker push $CI_REGISTRY_IMAGE
test: test:
stage: test stage: test
image: $CI_REGISTRY_IMAGE
tags: tags:
- docker - docker
script: script:
...@@ -21,6 +28,7 @@ test: ...@@ -21,6 +28,7 @@ test:
deploy: deploy:
stage: deploy stage: deploy
image: $CI_REGISTRY_IMAGE
tags: tags:
- docker - docker
script: script:
......
FROM boileaum/jupyter
# From Jupyter Project <jupyter@googlegroups.com>
LABEL maintainer="Matthieu Boileau <matthieu.boileau@math.unistra.fr>"
COPY pyproject.toml .
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
ENV PATH="$HOME/.poetry/bin:$PATH"
RUN poetry install
\ No newline at end of file
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