Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nbcourse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Matthieu Boileau
nbcourse
Commits
cc701c02
Commit
cc701c02
authored
4 years ago
by
Matthieu Boileau
Browse files
Options
Downloads
Patches
Plain Diff
Use docker image in CI
parent
b73dd2fd
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!17
v0.3.0
Pipeline
#9555
passed
4 years ago
Stage: deps
Stage: test
Changes
3
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.dockerignore
+2
-0
2 additions, 0 deletions
.dockerignore
.gitlab-ci.yml
+13
-5
13 additions, 5 deletions
.gitlab-ci.yml
Dockerfile
+10
-0
10 additions, 0 deletions
Dockerfile
with
25 additions
and
5 deletions
.dockerignore
0 → 100644
+
2
−
0
View file @
cc701c02
*
!pyproject.toml
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
13
−
5
View file @
cc701c02
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
:
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
10
−
0
View file @
cc701c02
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment