Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_container
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
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
containers
eic_container
Commits
699de009
Commit
699de009
authored
10 months ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
feat: allow for different builder and runtime images
parent
b92ad76c
No related branches found
No related tags found
1 merge request
!928
feat: allow for different builder and runtime images
Pipeline
#93921
passed with warnings
10 months ago
Stage: status-pending
Stage: config
Stage: base
Stage: eic
Stage: deploy
Stage: benchmarks
Stage: finalize
Stage: status-report
Pipeline: physics_benchmarks
#93925
Pipeline: detector_benchmarks
#93924
Pipeline: physics_benchmarks
#93923
+1
Changes
3
Pipelines
6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.github/workflows/build-push.yml
+4
-2
4 additions, 2 deletions
.github/workflows/build-push.yml
.gitlab-ci.yml
+8
-4
8 additions, 4 deletions
.gitlab-ci.yml
containers/jug/dev.Dockerfile
+4
-3
4 additions, 3 deletions
containers/jug/dev.Dockerfile
with
16 additions
and
9 deletions
.github/workflows/build-push.yml
+
4
−
2
View file @
699de009
...
@@ -114,7 +114,8 @@ jobs:
...
@@ -114,7 +114,8 @@ jobs:
strategy
:
strategy
:
matrix
:
matrix
:
include
:
include
:
-
BASE_IMAGE
:
debian_stable_base
-
BUILDER_IMAGE
:
debian_stable_base
RUNTIME_IMAGE
:
debian_stable_base
BUILD_IMAGE
:
dev
BUILD_IMAGE
:
dev
PLATFORM
:
linux/amd64
PLATFORM
:
linux/amd64
ENV
:
dev
ENV
:
dev
...
@@ -208,7 +209,8 @@ jobs:
...
@@ -208,7 +209,8 @@ jobs:
labels
:
${{ steps.meta.outputs.labels }}
labels
:
${{ steps.meta.outputs.labels }}
build-args
:
|
build-args
:
|
DOCKER_REGISTRY=${{ env.GH_REGISTRY }}/${{ env.GH_REGISTRY_USER }}/
DOCKER_REGISTRY=${{ env.GH_REGISTRY }}/${{ env.GH_REGISTRY_USER }}/
BASE_IMAGE=${{ matrix.BASE_IMAGE }}
BUILDER_IMAGE=${{ matrix.BUILDER_IMAGE }}
RUNTIME_IMAGE=${{ matrix.RUNTIME_IMAGE }}
BUILD_IMAGE=eic_${{ matrix.BUILD_IMAGE }}
BUILD_IMAGE=eic_${{ matrix.BUILD_IMAGE }}
INTERNAL_TAG=${{ env.INTERNAL_TAG }}
INTERNAL_TAG=${{ env.INTERNAL_TAG }}
SPACK_ORGREPO=${{ steps.spack.outputs.orgrepo }}
SPACK_ORGREPO=${{ steps.spack.outputs.orgrepo }}
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
8
−
4
View file @
699de009
...
@@ -286,7 +286,8 @@ eic:
...
@@ -286,7 +286,8 @@ eic:
-
BUILD_TYPE
:
-
BUILD_TYPE
:
-
default
-
default
-
nightly
-
nightly
BASE_IMAGE
:
debian_stable_base
BUILDER_IMAGE
:
debian_stable_base
RUNTIME_IMAGE
:
debian_stable_base
BUILD_IMAGE
:
eic_
BUILD_IMAGE
:
eic_
PLATFORM
:
linux/amd64
PLATFORM
:
linux/amd64
ENV
:
ENV
:
...
@@ -296,7 +297,8 @@ eic:
...
@@ -296,7 +297,8 @@ eic:
# - BUILD_TYPE:
# - BUILD_TYPE:
# - default
# - default
# - nightly
# - nightly
# BASE_IMAGE: oneapi_base
# BUILDER_IMAGE: oneapi_base
# RUNTIME_IMAGE: oneapi_base
# BUILD_IMAGE: oneapi_
# BUILD_IMAGE: oneapi_
# PLATFORM: linux/amd64
# PLATFORM: linux/amd64
# ENV:
# ENV:
...
@@ -304,7 +306,8 @@ eic:
...
@@ -304,7 +306,8 @@ eic:
# - BUILD_TYPE:
# - BUILD_TYPE:
# - default
# - default
# - nightly
# - nightly
# BASE_IMAGE: cuda_base_new
# BUILDER_IMAGE: cuda_base_new
# RUNTIME_IMAGE: cuda_base_new
# BUILD_IMAGE: cuda_
# BUILD_IMAGE: cuda_
# PLATFORM: linux/amd64
# PLATFORM: linux/amd64
# ENV:
# ENV:
...
@@ -367,7 +370,8 @@ eic:
...
@@ -367,7 +370,8 @@ eic:
--file containers/jug/dev.Dockerfile
--file containers/jug/dev.Dockerfile
--platform ${PLATFORM}
--platform ${PLATFORM}
--build-arg DOCKER_REGISTRY=${CI_REGISTRY}/${CI_PROJECT_PATH}/
--build-arg DOCKER_REGISTRY=${CI_REGISTRY}/${CI_PROJECT_PATH}/
--build-arg BASE_IMAGE=${BASE_IMAGE}
--build-arg BUILDER_IMAGE=${BUILDER_IMAGE}
--build-arg RUNTIME_IMAGE=${RUNTIME_IMAGE}
--build-arg INTERNAL_TAG=${INTERNAL_TAG}
--build-arg INTERNAL_TAG=${INTERNAL_TAG}
--build-arg SPACK_ORGREPO=${SPACK_ORGREPO}
--build-arg SPACK_ORGREPO=${SPACK_ORGREPO}
--build-arg SPACK_VERSION=${SPACK_VERSION}
--build-arg SPACK_VERSION=${SPACK_VERSION}
...
...
This diff is collapsed.
Click to expand it.
containers/jug/dev.Dockerfile
+
4
−
3
View file @
699de009
#syntax=docker/dockerfile:1.4
#syntax=docker/dockerfile:1.4
ARG
DOCKER_REGISTRY="eicweb/"
ARG
DOCKER_REGISTRY="eicweb/"
ARG
BASE_IMAGE="debian_stable_base"
ARG
BUILDER_IMAGE="debian_stable_base"
ARG
RUNTIME_IMAGE="debian_stable_base"
ARG
INTERNAL_TAG="testing"
ARG
INTERNAL_TAG="testing"
## ========================================================================================
## ========================================================================================
## STAGE0: spack image
## STAGE0: spack image
## EIC spack image with spack and eic-spack repositories
## EIC spack image with spack and eic-spack repositories
## ========================================================================================
## ========================================================================================
FROM
${DOCKER_REGISTRY}${B
ASE
_IMAGE}:${INTERNAL_TAG}
as
spack
FROM
${DOCKER_REGISTRY}${B
UILDER
_IMAGE}:${INTERNAL_TAG}
as
spack
ARG
TARGETPLATFORM
ARG
TARGETPLATFORM
## With heredocs for multi-line scripts, we want to fail on error and the print failing line.
## With heredocs for multi-line scripts, we want to fail on error and the print failing line.
...
@@ -314,7 +315,7 @@ EOF
...
@@ -314,7 +315,7 @@ EOF
## STAGE 3
## STAGE 3
## Lean target image
## Lean target image
## ========================================================================================
## ========================================================================================
FROM
${DOCKER_REGISTRY}${
BAS
E_IMAGE}:${INTERNAL_TAG}
as
export
FROM
${DOCKER_REGISTRY}${
RUNTIM
E_IMAGE}:${INTERNAL_TAG}
as
runtime
ARG
TARGETPLATFORM
ARG
TARGETPLATFORM
LABEL
maintainer="Sylvester Joosten <sjoosten@anl.gov>" \
LABEL
maintainer="Sylvester Joosten <sjoosten@anl.gov>" \
...
...
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