Commit cc701c02 authored by Matthieu Boileau's avatar Matthieu Boileau

Use docker image in CI

parent b73dd2fd
Pipeline #9555 passed with stages
in 52 seconds
*
!pyproject.toml
image: boileaum/jupyter
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- deps
- test
- deploy
before_script:
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
- source $HOME/.poetry/env
deps:
stage: deps
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:
stage: test
image: $CI_REGISTRY_IMAGE
tags:
- docker
script:
......@@ -21,6 +28,7 @@ test:
deploy:
stage: deploy
image: $CI_REGISTRY_IMAGE
tags:
- docker
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