Skip to content
Snippets Groups Projects
Commit cc701c02 authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Use docker image in CI

parent b73dd2fd
Branches
Tags
1 merge request!17v0.3.0
Pipeline #9555 passed
*
!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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment