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
ff2205a2
Commit
ff2205a2
authored
2 years ago
by
Ujwal Kundur
Committed by
Wouter Deconinck
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Repo Cleanup
parent
b7217126
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!309
Repo Cleanup
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+7
-7
7 additions, 7 deletions
.gitlab-ci.yml
containers/debian/Dockerfile
+2
-2
2 additions, 2 deletions
containers/debian/Dockerfile
containers/jug/dev.Dockerfile
+11
-8
11 additions, 8 deletions
containers/jug/dev.Dockerfile
containers/jug/eic-env.sh
+1
-1
1 addition, 1 deletion
containers/jug/eic-env.sh
with
21 additions
and
18 deletions
.gitlab-ci.yml
+
7
−
7
View file @
ff2205a2
...
@@ -70,23 +70,23 @@ workflow:
...
@@ -70,23 +70,23 @@ workflow:
## Workflows:
## Workflows:
## - master --> config + all build stages + singularity
## - master --> config + all build stages + singularity
# + nightly build:jug + nightly singularity
# + nightly build:jug + nightly singularity
## - v
3
.0-stable --> config + all build stages + singularity
## - v
4
.0-stable --> config + all build stages + singularity
## - v
3
.0.0 --> config + all build stages + singularity
## - v
4
.0.0 --> config + all build stages + singularity
## - MR --> config + all build stages
## - MR --> config + all build stages
##
##
## Container images tags
## Container images tags
## - master --> testing
## - master --> testing
## - <nightly> --> nightly (run as part of master)
## - <nightly> --> nightly (run as part of master)
## - v
3
.0-stable -->
3
.0-stable
## - v
4
.0-stable -->
4
.0-stable
## - v
3
.0.0 -->
3
.0-stable,
3
.0.0
## - v
4
.0.0 -->
4
.0-stable,
4
.0.0
## - acadia
## - acadia
## - MR -->
3
.0-unstable (on all registries)
## - MR -->
4
.0-unstable (on all registries)
## --> unstable-mr-XXX (on eicweb only, untag at end of pipeline)
## --> unstable-mr-XXX (on eicweb only, untag at end of pipeline)
## - all other --> do nothing
## - all other --> do nothing
##
##
## caching strategy for dispatch to multiple nodes and to avoid
## caching strategy for dispatch to multiple nodes and to avoid
## --> try this strategy: https://medium.com/titansoft-engineering/docker-build-cache-sharing-on-multi-hosts-with-buildkit-and-buildx-eb8f7005918e
## --> try this strategy: https://medium.com/titansoft-engineering/docker-build-cache-sharing-on-multi-hosts-with-buildkit-and-buildx-eb8f7005918e
## (first try with buildx didn't pan out, let's try again later)
version
:
version
:
stage
:
config
stage
:
config
...
@@ -201,7 +201,7 @@ cuda_base:default:
...
@@ -201,7 +201,7 @@ cuda_base:default:
BUILD_IMAGE
:
"
cuda_base"
BUILD_IMAGE
:
"
cuda_base"
script
:
script
:
-
docker build -t ${CI_REGISTRY_IMAGE}/${BUILD_IMAGE}:${INTERNAL_TAG}
-
docker build -t ${CI_REGISTRY_IMAGE}/${BUILD_IMAGE}:${INTERNAL_TAG}
containers/
oneapi
containers/
cuda
-
!reference
[
.build
,
script
]
-
!reference
[
.build
,
script
]
jug_dev:default
:
jug_dev:default
:
...
...
This diff is collapsed.
Click to expand it.
containers/debian/Dockerfile
+
2
−
2
View file @
ff2205a2
...
@@ -17,7 +17,7 @@ ENV CLICOLOR_FORCE=1 \
...
@@ -17,7 +17,7 @@ ENV CLICOLOR_FORCE=1 \
## Install additional packages. Remove the auto-cleanup functionality
## Install additional packages. Remove the auto-cleanup functionality
## for docker, as we're using the new buildkit cache instead.
## for docker, as we're using the new buildkit cache instead.
## We also install gitlab-runner, from the bu
ster
package (as b
ullseye
is not available atm)
## We also install gitlab-runner, from the bu
llseye
package (as b
ookworm
is not available atm)
## TODO: libyaml-cpp-dev is a dependency for afterburner. We can probably remove
## TODO: libyaml-cpp-dev is a dependency for afterburner. We can probably remove
## this once afterburner is added to spack
## this once afterburner is added to spack
RUN
--mount
=
type
=
cache,target
=
/var/cache/apt
\
RUN
--mount
=
type
=
cache,target
=
/var/cache/apt
\
...
@@ -70,7 +70,7 @@ RUN --mount=type=cache,target=/var/cache/apt \
...
@@ -70,7 +70,7 @@ RUN --mount=type=cache,target=/var/cache/apt \
&&
curl
-L
\
&&
curl
-L
\
"https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh"
\
"https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh"
\
| bash
\
| bash
\
&&
sed
-i
"s/bookworm/bu
ster/"
\
&&
sed
-i
"s/bookworm/bu
llseye/"
\
/etc/apt/sources.list.d/runner_gitlab-runner.list
\
/etc/apt/sources.list.d/runner_gitlab-runner.list
\
&&
apt-get
-yqq
update
\
&&
apt-get
-yqq
update
\
&&
apt-get
-yqq
install
--no-install-recommends
\
&&
apt-get
-yqq
install
--no-install-recommends
\
...
...
This diff is collapsed.
Click to expand it.
containers/jug/dev.Dockerfile
+
11
−
8
View file @
ff2205a2
...
@@ -8,7 +8,7 @@ ARG INTERNAL_TAG="testing"
...
@@ -8,7 +8,7 @@ ARG INTERNAL_TAG="testing"
## ========================================================================================
## ========================================================================================
FROM
${DOCKER_REGISTRY}debian_base:${INTERNAL_TAG}
as
builder
FROM
${DOCKER_REGISTRY}debian_base:${INTERNAL_TAG}
as
builder
## instal some extra spack dependencies
## instal
l
some extra spack dependencies
RUN
--mount
=
type
=
cache,target
=
/var/cache/apt
\
RUN
--mount
=
type
=
cache,target
=
/var/cache/apt
\
rm
-f
/etc/apt/apt.conf.d/docker-clean
\
rm
-f
/etc/apt/apt.conf.d/docker-clean
\
&&
apt-get
-yqq
update
\
&&
apt-get
-yqq
update
\
...
@@ -32,7 +32,7 @@ RUN echo "Part 1: regular spack install (as in containerize)" \
...
@@ -32,7 +32,7 @@ RUN echo "Part 1: regular spack install (as in containerize)" \
git cherry-pick
-n
$SPACK_CHERRYPICKS
;
\
git cherry-pick
-n
$SPACK_CHERRYPICKS
;
\
fi
\
fi
\
&&
cd
-
\
&&
cd
-
\
&&
mkdir
-p
$SPACK_ROOT
/opt/spack
\
&&
mkdir
-p
$SPACK_ROOT
\
&&
cp
-r
/tmp/spack-staging/bin
$SPACK_ROOT
/bin
\
&&
cp
-r
/tmp/spack-staging/bin
$SPACK_ROOT
/bin
\
&&
cp
-r
/tmp/spack-staging/etc
$SPACK_ROOT
/etc
\
&&
cp
-r
/tmp/spack-staging/etc
$SPACK_ROOT
/etc
\
&&
cp
-r
/tmp/spack-staging/lib
$SPACK_ROOT
/lib
\
&&
cp
-r
/tmp/spack-staging/lib
$SPACK_ROOT
/lib
\
...
@@ -73,6 +73,11 @@ RUN --mount=type=cache,target=/var/cache/spack-mirror \
...
@@ -73,6 +73,11 @@ RUN --mount=type=cache,target=/var/cache/spack-mirror \
&&
spack mirror add docker /var/cache/spack-mirror
\
&&
spack mirror add docker /var/cache/spack-mirror
\
&&
spack mirror list
&&
spack mirror list
## This variable will change whenevery either spack.yaml or our spack package
## overrides change, triggering a rebuild
ARG
CACHE_BUST="hash"
ARG
CACHE_NUKE=""
## Setup our custom environment and package overrides
## Setup our custom environment and package overrides
COPY
spack $SPACK_ROOT/eic-spack
COPY
spack $SPACK_ROOT/eic-spack
RUN
spack repo add
--scope
site
"
$SPACK_ROOT
/eic-spack"
\
RUN
spack repo add
--scope
site
"
$SPACK_ROOT
/eic-spack"
\
...
@@ -83,10 +88,6 @@ RUN spack repo add --scope site "$SPACK_ROOT/eic-spack" \
...
@@ -83,10 +88,6 @@ RUN spack repo add --scope site "$SPACK_ROOT/eic-spack" \
&&
spack
env
activate
.
\
&&
spack
env
activate
.
\
&&
spack concretize
&&
spack concretize
## This variable will change whenevery either spack.yaml or our spack package
## overrides change, triggering a rebuild
ARG
CACHE_BUST="hash"
ARG
CACHE_NUKE=""
## Now execute the main build (or fetch from cache if possible)
## Now execute the main build (or fetch from cache if possible)
## note, no-check-signature is needed to allow the quicker signature-less
## note, no-check-signature is needed to allow the quicker signature-less
...
@@ -136,7 +137,9 @@ RUN --mount=type=cache,target=/var/cache/pip \
...
@@ -136,7 +137,9 @@ RUN --mount=type=cache,target=/var/cache/pip \
--trusted-host
pypi.org
\
--trusted-host
pypi.org
\
--trusted-host
files.pythonhosted.org
\
--trusted-host
files.pythonhosted.org
\
--cache-dir
/var/cache/pip
\
--cache-dir
/var/cache/pip
\
--requirement
/usr/local/etc/requirements.txt
--requirement
/usr/local/etc/requirements.txt
\
--no-warn-script-location
# ^ Supress not on PATH Warnings
## Including some small fixes:
## Including some small fixes:
## - Somehow PODIO env isn't automatically set,
## - Somehow PODIO env isn't automatically set,
...
@@ -171,7 +174,7 @@ FROM builder as staging
...
@@ -171,7 +174,7 @@ FROM builder as staging
RUN
cd
/opt/spack-environment
&&
spack
env
activate
.
&&
spack gc
-y
RUN
cd
/opt/spack-environment
&&
spack
env
activate
.
&&
spack gc
-y
# Strip all the binaries
# Strip all the binaries
# This reduces the image by factor of x2, so worth the effort
# This reduces the image by factor of x2, so worth the effort
# note that we do not strip python libraries as can cause issues in some cases
# note that we do not strip python libraries as
it
can cause issues in some cases
RUN
find
-L
/usr/local/
*
\
RUN
find
-L
/usr/local/
*
\
-type
d
-name
site-packages
-prune
-false
-o
\
-type
d
-name
site-packages
-prune
-false
-o
\
-type
f
-not
-name
"zdll.lib"
-not
-name
libtensorflow-lite.a
\
-type
f
-not
-name
"zdll.lib"
-not
-name
libtensorflow-lite.a
\
...
...
This diff is collapsed.
Click to expand it.
containers/jug/eic-env.sh
+
1
−
1
View file @
ff2205a2
...
@@ -27,7 +27,7 @@ if [ -f /etc/jug_info ]; then
...
@@ -27,7 +27,7 @@ if [ -f /etc/jug_info ]; then
esac
esac
ps1_preamble
=
"
${
container
}${
sigil
}
> "
ps1_preamble
=
"
${
container
}${
sigil
}
> "
export
PS1_SIGIL
=
${
sigil
}
export
PS1_SIGIL
=
${
sigil
}
unset
${
sigil
}
unset
sigil
fi
fi
unset
version
unset
version
unset
container
unset
container
...
...
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