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
da6b4209
Commit
da6b4209
authored
1 year ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
feat: spack concretize --quiet
parent
61734c68
No related branches found
Branches containing commit
Tags
v0.13.3
Tags containing commit
1 merge request
!765
feat: spack concretize --quiet
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
containers/jug/dev.Dockerfile
+9
-8
9 additions, 8 deletions
containers/jug/dev.Dockerfile
with
9 additions
and
8 deletions
containers/jug/dev.Dockerfile
+
9
−
8
View file @
da6b4209
...
@@ -51,7 +51,7 @@ SHELL ["docker-shell"]
...
@@ -51,7 +51,7 @@ SHELL ["docker-shell"]
## Setup build configuration
## Setup build configuration
ARG
jobs=64
ARG
jobs=64
RUN
<<
EOF
RUN
<<
EOF
set -e
x
set -e
declare -A target=(["linux/amd64"]="x86_64_v2" ["linux/arm64"]="aarch64")
declare -A target=(["linux/amd64"]="x86_64_v2" ["linux/arm64"]="aarch64")
target=${target[${TARGETPLATFORM}]}
target=${target[${TARGETPLATFORM}]}
spack config --scope site add "packages:all:require:[target=${target}]"
spack config --scope site add "packages:all:require:[target=${target}]"
...
@@ -70,7 +70,7 @@ EOF
...
@@ -70,7 +70,7 @@ EOF
## Setup local buildcache mirrors
## Setup local buildcache mirrors
RUN
--mount
=
type
=
cache,target
=
/var/cache/spack
<<
EOF
RUN
--mount
=
type
=
cache,target
=
/var/cache/spack
<<
EOF
set -e
x
set -e
spack mirror add local /var/cache/spack/mirror/${SPACK_VERSION}
spack mirror add local /var/cache/spack/mirror/${SPACK_VERSION}
spack buildcache update-index local
spack buildcache update-index local
spack mirror list
spack mirror list
...
@@ -82,7 +82,7 @@ EOF
...
@@ -82,7 +82,7 @@ EOF
ARG
S3_ACCESS_KEY=""
ARG
S3_ACCESS_KEY=""
ARG
S3_SECRET_KEY=""
ARG
S3_SECRET_KEY=""
RUN
--mount
=
type
=
cache,target
=
/var/cache/spack
<<
EOF
RUN
--mount
=
type
=
cache,target
=
/var/cache/spack
<<
EOF
set -e
x
set -e
if [ -n "${S3_ACCESS_KEY}" ] ; then
if [ -n "${S3_ACCESS_KEY}" ] ; then
spack mirror add --scope site \
spack mirror add --scope site \
--s3-endpoint-url https://eics3.sdcc.bnl.gov:9000 \
--s3-endpoint-url https://eics3.sdcc.bnl.gov:9000 \
...
@@ -100,7 +100,7 @@ ARG EICSPACK_VERSION="$SPACK_VERSION"
...
@@ -100,7 +100,7 @@ ARG EICSPACK_VERSION="$SPACK_VERSION"
ARG
EICSPACK_CHERRYPICKS=""
ARG
EICSPACK_CHERRYPICKS=""
ADD
https://api.github.com/repos/${EICSPACK_ORGREPO}/commits/${EICSPACK_VERSION} /tmp/eic-spack.json
ADD
https://api.github.com/repos/${EICSPACK_ORGREPO}/commits/${EICSPACK_VERSION} /tmp/eic-spack.json
RUN
<<
EOF
RUN
<<
EOF
set -e
x
set -e
git clone --filter=tree:0 https://github.com/${EICSPACK_ORGREPO}.git ${EICSPACK_ROOT}
git clone --filter=tree:0 https://github.com/${EICSPACK_ORGREPO}.git ${EICSPACK_ROOT}
git -C ${EICSPACK_ROOT} checkout ${EICSPACK_VERSION}
git -C ${EICSPACK_ROOT} checkout ${EICSPACK_VERSION}
if [ -n "${EICSPACK_CHERRYPICKS}" ] ; then
if [ -n "${EICSPACK_CHERRYPICKS}" ] ; then
...
@@ -115,7 +115,7 @@ ARG KEY4HEPSPACK_ORGREPO="key4hep/key4hep-spack"
...
@@ -115,7 +115,7 @@ ARG KEY4HEPSPACK_ORGREPO="key4hep/key4hep-spack"
ARG
KEY4HEPSPACK_VERSION="main"
ARG
KEY4HEPSPACK_VERSION="main"
ADD
https://api.github.com/repos/${KEY4HEPSPACK_ORGREPO}/commits/${KEY4HEPSPACK_VERSION} /tmp/key4hep-spack.json
ADD
https://api.github.com/repos/${KEY4HEPSPACK_ORGREPO}/commits/${KEY4HEPSPACK_VERSION} /tmp/key4hep-spack.json
RUN
<<
EOF
RUN
<<
EOF
set -e
x
set -e
git clone --filter=tree:0 https://github.com/${KEY4HEPSPACK_ORGREPO}.git ${KEY4HEPSPACK_ROOT}
git clone --filter=tree:0 https://github.com/${KEY4HEPSPACK_ORGREPO}.git ${KEY4HEPSPACK_ROOT}
git -C ${KEY4HEPSPACK_ROOT} checkout ${KEY4HEPSPACK_VERSION}
git -C ${KEY4HEPSPACK_ROOT} checkout ${KEY4HEPSPACK_VERSION}
spack repo add --scope site "${KEY4HEPSPACK_ROOT}"
spack repo add --scope site "${KEY4HEPSPACK_ROOT}"
...
@@ -140,13 +140,14 @@ RUN --mount=type=cache,target=/ccache,id=${TARGETPLATFORM} \
...
@@ -140,13 +140,14 @@ RUN --mount=type=cache,target=/ccache,id=${TARGETPLATFORM} \
--mount
=
type
=
cache,target
=
/var/cache/spack
\
--mount
=
type
=
cache,target
=
/var/cache/spack
\
--mount
=
type
=
secret,id
=
mirrors,target
=
/opt/spack/etc/spack/mirrors.yaml
\
--mount
=
type
=
secret,id
=
mirrors,target
=
/opt/spack/etc/spack/mirrors.yaml
\
<<
EOF
<<
EOF
set -e
x
set -e
export CCACHE_DIR=/ccache
export CCACHE_DIR=/ccache
spack buildcache update-index local
spack buildcache update-index local
spack buildcache update-index eics3rw
spack buildcache update-index eics3rw
spack env activate --dir ${SPACK_ENV}
spack env activate --dir ${SPACK_ENV}
spack add juggler@git.${JUGGLER_VERSION}
spack add juggler@git.${JUGGLER_VERSION}
spack add eicrecon@git.${EICRECON_VERSION}
spack add eicrecon@git.${EICRECON_VERSION}
spack concretize --fresh --force --quiet
make --jobs ${jobs} --keep-going --directory /opt/spack-environment SPACK_ENV=${SPACK_ENV} BUILDCACHE_MIRROR="local eics3rw"
make --jobs ${jobs} --keep-going --directory /opt/spack-environment SPACK_ENV=${SPACK_ENV} BUILDCACHE_MIRROR="local eics3rw"
ccache --show-stats
ccache --show-stats
ccache --zero-stats
ccache --zero-stats
...
@@ -154,7 +155,7 @@ EOF
...
@@ -154,7 +155,7 @@ EOF
## Create view at /usr/local
## Create view at /usr/local
RUN
--mount
=
type
=
cache,target
=
/var/cache/spack
<<
EOF
RUN
--mount
=
type
=
cache,target
=
/var/cache/spack
<<
EOF
set -e
x
set -e
spack env activate --dir ${SPACK_ENV}
spack env activate --dir ${SPACK_ENV}
rm -r /usr/local
rm -r /usr/local
spack env view enable /usr/local
spack env view enable /usr/local
...
@@ -170,7 +171,7 @@ EOF
...
@@ -170,7 +171,7 @@ EOF
## Store environment
## Store environment
RUN
<<
EOF
RUN
<<
EOF
set -e
x
set -e
spack env activate --sh --dir ${SPACK_ENV} > /etc/profile.d/z10_spack_environment.sh
spack env activate --sh --dir ${SPACK_ENV} > /etc/profile.d/z10_spack_environment.sh
EOF
EOF
...
...
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