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
be5a5ca4
Commit
be5a5ca4
authored
Nov 05, 2020
by
Nicolas M. Thiéry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attempt of image build by buildah
parent
ddb968a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
14 deletions
+19
-14
.gitlab-ci.yml
.gitlab-ci.yml
+19
-14
No files found.
.gitlab-ci.yml
View file @
be5a5ca4
image
:
docker:git
stages
:
-
build
services
:
-
docker:dind
variables
:
DEPENDENCIES_IMAGE_NAME
:
${CI_REGISTRY_IMAGE}/image:latest
STORAGE_DRIVER
:
vfs
# for buildah
REGISTRY_AUTH_FILE
:
/root/auth.json
before_script
:
-
docker login -u gitlab-ci-token -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
after_script
:
-
'
docker
logout
$CI_REGISTRY'
build-image
:
stage
:
build
#and stage
build_image
:
stage
:
build
image
:
tomkukral/buildah
before_script
:
-
podman login --username "${CI_REGISTRY_USER}" --password "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
script
:
-
docker pull jupyter/tensorflow-notebook
-
docker build -t gitlab-registry.in2p3.fr/jupyterhub-paris-saclay/image .
-
docker push gitlab-registry.in2p3.fr/jupyterhub-paris-saclay/image
-
buildah bud --format docker -t ${DEPENDENCIES_IMAGE_NAME} .
-
buildah push --authfile ${REGISTRY_AUTH_FILE} ${DEPENDENCIES_IMAGE_NAME}
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