Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
G
gpu-docker-stacks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iLab.t
gpu-docker-stacks
Commits
c93e70af
Commit
c93e70af
authored
Jul 29, 2019
by
Thijs Walcarius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add .gitlab-ci.yml to automatically build and push images
parent
48052e42
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
100 additions
and
0 deletions
+100
-0
.gitlab-ci.yml
.gitlab-ci.yml
+99
-0
base-notebook/Dockerfile
base-notebook/Dockerfile
+1
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
c93e70af
.build-tag-push
:
&build-tag-push
image
:
docker:18-git
stage
:
build
only
:
-
pushes
services
:
-
docker:18-dind
before_script
:
-
apk add make bash
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script
:
-
docker pull $CI_REGISTRY_IMAGE/$docker_image:latest || echo "No previous image build found for $docker_image"
-
DARGS="$EXTRA_DARGS -t \"$CI_REGISTRY_IMAGE/$docker_image:$DOCKER_TAG\" -t \"$CI_REGISTRY_IMAGE/$docker_image:$CI_COMMIT_SHA\" -t \"$CI_REGISTRY_IMAGE/$docker_image:$CI_COMMIT_REF_SLUG\" --cache-from \"$CI_REGISTRY_IMAGE/$docker_image:latest\"" make "build/$docker_image" OWNER="$CI_REGISTRY_IMAGE"
-
docker push $CI_REGISTRY_IMAGE/$docker_image:latest
-
docker push $CI_REGISTRY_IMAGE/$docker_image:$DOCKER_TAG
-
docker push $CI_REGISTRY_IMAGE/$docker_image:$CI_COMMIT_REF_SLUG
-
docker push $CI_REGISTRY_IMAGE/$docker_image:$CI_COMMIT_SHA
.base-variables
:
&base-variables
DOCKER_TAG
:
cuda10.1-ubuntu18.04
DOCKER_DRIVER
:
overlay2
stages
:
-
update-from-upstream
-
build-base-notebook
-
build-minimal-notebook
-
build-scipy-notebook
-
build
update-from-upstream
:
stage
:
update-from-upstream
only
:
-
schedules
-
web
image
:
alpine:latest
before_script
:
-
apk add git openssh-client
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
-
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
-
chmod 644 ~/.ssh/known_hosts
-
eval $(ssh-agent -s)
-
echo "$GIT_SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
-
git config --global user.email "ci.robot@ilabt.imec.be"
-
git config --global user.name "Mr. Robot"
script
:
-
cd /tmp
-
git clone git@gitlab.ilabt.imec.be:ilabt/gpu-docker-stacks.git
-
cd gpu-docker-stacks
-
git remote add upstream https://github.com/jupyter/docker-stacks.git || git remote -v
-
git fetch upstream
-
git branch -tf upstream_master upstream/master
-
git checkout master
-
git rebase upstream_master
-
git push --force origin master
cache
:
{}
build-base-notebook
:
<<
:
*build-tag-push
stage
:
build-base-notebook
variables
:
<<
:
*base-variables
docker_image
:
base-notebook
BASE_CONTAINER
:
nvcr.io/nvidia/cuda:10.1-cudnn7-runtime-ubuntu18.04
EXTRA_DARGS
:
"
--build-arg
BASE_CONTAINER=
\"
$BASE_CONTAINER
\"
"
build-minimal-notebook
:
<<
:
*build-tag-push
stage
:
build-minimal-notebook
variables
:
<<
:
*base-variables
docker_image
:
minimal-notebook
EXTRA_DARGS
:
"
--build-arg
BASE_CONTAINER=
\"
$CI_REGISTRY_IMAGE/base-notebook:latest
\"
"
build-scipy-notebook
:
<<
:
*build-tag-push
stage
:
build-scipy-notebook
variables
:
<<
:
*base-variables
docker_image
:
scipy-notebook
EXTRA_DARGS
:
"
--build-arg
BASE_CONTAINER=
\"
$CI_REGISTRY_IMAGE/minimal-notebook:latest
\"
"
build:tensorflow-notebook:
<<
:
*build-tag-push
stage
:
build
variables
:
<<
:
*base-variables
docker_image
:
tensorflow-notebook
EXTRA_DARGS
:
"
--build-arg
BASE_CONTAINER=
\"
$CI_REGISTRY_IMAGE/scipy-notebook:latest
\"
"
build:datascience-notebook:
<<
:
*build-tag-push
stage
:
build
variables
:
<<
:
*base-variables
docker_image
:
datascience-notebook
EXTRA_DARGS
:
"
--build-arg
BASE_CONTAINER=
\"
$CI_REGISTRY_IMAGE/scipy-notebook:latest
\"
"
base-notebook/Dockerfile
View file @
c93e70af
...
...
@@ -2,6 +2,7 @@
# Distributed under the terms of the Modified BSD License.
# Ubuntu 18.04 (bionic)
# This comment is edited to create a merge conflict once the base container is changed upstream
# https://hub.docker.com/_/ubuntu/?tab=tags&name=bionic
# OS/ARCH: linux/amd64
ARG
ROOT_CONTAINER=ubuntu:bionic-20200403@sha256:b58746c8a89938b8c9f5b77de3b8cf1fe78210c696ab03a1442e235eea65d84f
...
...
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