Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
course-container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
EnJoY
course-container
Commits
7bb5c67c
Commit
7bb5c67c
authored
1 year ago
by
Christian Winter
Browse files
Options
Downloads
Patches
Plain Diff
set the dependencies right
parent
8d42c2f1
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+34
-18
34 additions, 18 deletions
.gitlab-ci.yml
tp_herwig/Dockerfile
+0
-2
0 additions, 2 deletions
tp_herwig/Dockerfile
with
34 additions
and
20 deletions
.gitlab-ci.yml
+
34
−
18
View file @
7bb5c67c
...
...
@@ -8,52 +8,68 @@ variables:
.common_build
:
image
:
docker:latest
stage
:
🏗️ build_and_push
rules
:
-
changes
:
-
$IMAGE_NAME/Dockerfile
-
basis/*
before_script
:
-
docker login -u "$DOCKER_HUB_USER" -p $DOCKER_TOKEN
script
:
-
docker build -t "$DOCKER_HUB_USER/etp_$IMAGE_NAME" $IMAGE_NAME --no-cache;
-
docker push "$DOCKER_HUB_USER/etp_$IMAGE_NAME";
.extend_build_image
:
extends
:
-
.common_build
needs
:
# if the build_and_push step basis has to be done, then make the other build_and_push steps dependend of it
-
job
:
basis
optional
:
true
# only run if basis is added to the pipeline (depends on the rules).
basis
:
variables
:
IMAGE_NAME
:
"
basis"
extends
:
-
.common_build
rules
:
# only execute if Dockerfile was changed
-
changes
:
-
$IMAGE_NAME/Dockerfile
tp
:
variables
:
IMAGE_NAME
:
"
tp"
extends
:
-
.extend_build_image
-
.common_build
needs
:
# if the build_and_push step basis has to be done, then make the other build_and_push steps dependend of it
-
job
:
basis
optional
:
true
# only run if basis is added to the pipeline (depends on the rules).
rules
:
# only execute if Dockerfile or basis/Dockerfile was changed
-
changes
:
-
$IMAGE_NAME/Dockerfile
-
basis/*
python311
:
variables
:
IMAGE_NAME
:
"
python311"
extends
:
-
.extend_build_image
-
.common_build
rules
:
# only execute if Dockerfile was changed
-
changes
:
-
$IMAGE_NAME/Dockerfile
basis_jupytermachine
:
variables
:
IMAGE_NAME
:
"
basis_jupytermachine"
extends
:
-
.extend_build_image
-
.common_build
needs
:
# if the build_and_push step basis has to be done, then make the other build_and_push steps dependend of it
-
job
:
basis
optional
:
true
# only run if basis is added to the pipeline (depends on the rules).
rules
:
# only execute if Dockerfile or basis/Dockerfile was changed
-
changes
:
-
$IMAGE_NAME/Dockerfile
-
basis/*
tp_herwig
:
variables
:
IMAGE_NAME
:
"
tp_herwig"
extends
:
-
.extend_build_image
-
.common_build
needs
:
# if the build_and_push step basis has to be done, then make the other build_and_push steps dependend of it
-
job
:
tp
optional
:
true
# only run if basis is added to the pipeline (depends on the rules).
rules
:
# only execute if Dockerfile or tp/Dockerfile was changed
-
changes
:
-
$IMAGE_NAME/Dockerfile
-
tp/*
create_jupytermachine_version
:
stage
:
create_jupytermachine_version
...
...
This diff is collapsed.
Click to expand it.
tp_herwig/Dockerfile
+
0
−
2
View file @
7bb5c67c
...
...
@@ -2,8 +2,6 @@ FROM jeppelt/etp_tp:latest
USER
root
RUN
python3
-m
pip
install
bash_kernel
RUN
mkdir
/herwig
ENV
INSTALL_LOC=/herwig
...
...
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