Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
jupyterhub-paris-saclay
image
Commits
cc58bfa3
Commit
cc58bfa3
authored
Nov 17, 2020
by
Nicolas M. Thiéry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore docker-in-docker-based image build
parent
9dcbfd24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
20 deletions
+14
-20
.gitlab-ci.yml
.gitlab-ci.yml
+14
-20
No files found.
.gitlab-ci.yml
View file @
cc58bfa3
stages
:
image
:
docker:git
-
build
variables
:
services
:
DEPENDENCIES_IMAGE_NAME
:
${CI_REGISTRY_IMAGE}/image:latest
-
docker:dind
STORAGE_DRIVER
:
vfs
# for buildah
REGISTRY_AUTH_FILE
:
/root/auth.json
build_image
:
before_script
:
stage
:
build
-
docker login -u gitlab-ci-token -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
image
:
tomkukral/buildah
before_script
:
after_script
:
-
podman login --username "${CI_REGISTRY_USER}" --password "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
-
'
docker
logout
$CI_REGISTRY'
build-image
:
stage
:
build
#and stage
script
:
script
:
-
buildah pull jupyter/tensorflow-notebook
-
docker pull jupyter/tensorflow-notebook
-
buildah bud --format docker -t ${DEPENDENCIES_IMAGE_NAME} .
-
docker build -t gitlab-registry.in2p3.fr/jupyterhub-paris-saclay/image .
-
buildah push --authfile ${REGISTRY_AUTH_FILE} ${DEPENDENCIES_IMAGE_NAME}
-
docker push gitlab-registry.in2p3.fr/jupyterhub-paris-saclay/image
after_script
:
-
podman logout "${CI_REGISTRY}"
only
:
changes
:
-
Dockerfile
-
binder/*
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment