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
28808770
Commit
28808770
authored
1 year ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
fix: add SPACK_VERSION to local buildcache location
parent
dcbe298e
No related branches found
No related tags found
1 merge request
!605
fix: add SPACK_VERSION to local buildcache location
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
containers/jug/dev.Dockerfile
+8
-8
8 additions, 8 deletions
containers/jug/dev.Dockerfile
mirrors.yaml.in
+1
-1
1 addition, 1 deletion
mirrors.yaml.in
with
9 additions
and
9 deletions
containers/jug/dev.Dockerfile
+
8
−
8
View file @
28808770
...
...
@@ -61,13 +61,13 @@ RUN declare -A target=( \
&&
spack compiler find
--scope
site
\
&&
spack config blame compilers
## Setup
spack
buildcache mirrors
## Setup
local
buildcache mirrors
RUN
--mount
=
type
=
cache,target
=
/var/cache/spack-mirror
\
spack mirror add docker /var/cache/spack-mirror
\
&&
spack buildcache update-index
-d
/var/cache/spack-mirror
\
spack mirror add docker /var/cache/spack-mirror
/
${
SPACK_VERSION
}
\
&&
spack buildcache update-index
-d
/var/cache/spack-mirror
/
${
SPACK_VERSION
}
\
&&
spack mirror list
## Setup eic
-spack
buildcache mirrors
## Setup eic
s3
buildcache mirrors
## - this always adds the read-only mirror to the container
## - the write-enabled mirror is provided later as a secret mount
ARG
S3_ACCESS_KEY=""
...
...
@@ -78,7 +78,7 @@ RUN --mount=type=cache,target=/var/cache/spack-mirror \
--s3-endpoint-url
https://eics3.sdcc.bnl.gov:9000
\
--s3-access-key-id
"
${
S3_ACCESS_KEY
}
"
\
--s3-access-key-secret
"
${
S3_SECRET_KEY
}
"
\
eic
-spack
s3://eictest/EPIC/spack
\
eic
s3
s3://eictest/EPIC/spack
\
;
fi
\
&&
spack mirror list
...
...
@@ -93,7 +93,7 @@ ARG EICSPACK_ORGREPO="eic/eic-spack"
ARG
EICSPACK_VERSION="$SPACK_VERSION"
ARG
EICSPACK_CHERRYPICKS=""
ADD
https://api.github.com/repos/${EICSPACK_ORGREPO}/commits/${EICSPACK_VERSION} /tmp/eic-spack.json
RUN
git clone https://github.com/
${
EICSPACK_ORGREPO
}
.git
${
EICSPACK_ROOT
}
\
RUN
git clone https://github.com/
${
EICSPACK_ORGREPO
}
.git
${
EICSPACK_ROOT
}
\
&&
git
-C
${
EICSPACK_ROOT
}
checkout
${
EICSPACK_VERSION
}
\
&&
if
[
-n
"
${
EICSPACK_CHERRYPICKS
}
"
]
;
then
\
git
-C
${
EICSPACK_ROOT
}
cherry-pick
-n
${
EICSPACK_CHERRYPICKS
}
;
\
...
...
@@ -112,8 +112,8 @@ RUN --mount=type=cache,target=/ccache,id=${TARGETPLATFORM} \
&&
spack
env
activate
--dir
${
SPACK_ENV
}
\
&&
make
--jobs
${
jobs
}
--keep-going
--directory
/opt/spack-environment
\
SPACK_ENV
=
${
SPACK_ENV
}
\
BUILDCACHE_DIR
=
/var/cache/spack-mirror
\
BUILDCACHE_MIRROR
=
eic
-spack
\
BUILDCACHE_DIR
=
/var/cache/spack-mirror
/
${
SPACK_VERSION
}
\
BUILDCACHE_MIRROR
=
eic
s3rw
\
&&
ccache
--show-stats
## Create view at /usr/local
...
...
This diff is collapsed.
Click to expand it.
mirrors.yaml.in
+
1
−
1
View file @
28808770
mirrors:
eic
-spack
:
eic
s3rw
:
fetch:
url: s3://eictest/EPIC/spack
access_pair:
...
...
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