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
8ab81405
Commit
8ab81405
authored
1 year ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
feat: allow for user-level spack operations
parent
203c2c07
No related branches found
No related tags found
1 merge request
!672
feat: allow for user-level spack operations
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
containers/jug/dev.Dockerfile
+18
-8
18 additions, 8 deletions
containers/jug/dev.Dockerfile
with
18 additions
and
8 deletions
containers/jug/dev.Dockerfile
+
18
−
8
View file @
8ab81405
...
@@ -28,7 +28,7 @@ ARG SPACK_ORGREPO="spack/spack"
...
@@ -28,7 +28,7 @@ ARG SPACK_ORGREPO="spack/spack"
ARG
SPACK_VERSION="releases/v0.20"
ARG
SPACK_VERSION="releases/v0.20"
ARG
SPACK_CHERRYPICKS=""
ARG
SPACK_CHERRYPICKS=""
ADD
https://api.github.com/repos/${SPACK_ORGREPO}/commits/${SPACK_VERSION} /tmp/spack.json
ADD
https://api.github.com/repos/${SPACK_ORGREPO}/commits/${SPACK_VERSION} /tmp/spack.json
RUN
git clone https://github.com/
${
SPACK_ORGREPO
}
.git
${
SPACK_ROOT
}
\
RUN
git clone
--filter
=
tree:0
https://github.com/
${
SPACK_ORGREPO
}
.git
${
SPACK_ROOT
}
\
&&
git
-C
${
SPACK_ROOT
}
checkout
${
SPACK_VERSION
}
\
&&
git
-C
${
SPACK_ROOT
}
checkout
${
SPACK_VERSION
}
\
&&
if
[
-n
"
${
SPACK_CHERRYPICKS
}
"
]
;
then
\
&&
if
[
-n
"
${
SPACK_CHERRYPICKS
}
"
]
;
then
\
git
-C
${
SPACK_ROOT
}
cherry-pick
-n
${
SPACK_CHERRYPICKS
}
;
\
git
-C
${
SPACK_ROOT
}
cherry-pick
-n
${
SPACK_CHERRYPICKS
}
;
\
...
@@ -51,12 +51,12 @@ RUN declare -A target=( \
...
@@ -51,12 +51,12 @@ RUN declare -A target=( \
&&
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
}
]"
\
&&
spack config blame packages
\
&&
spack config blame packages
\
&&
spack config
--scope
site
add
"config:suppress_gpg_warnings:true"
\
&&
spack config
--scope
user
add
"config:suppress_gpg_warnings:true"
\
&&
spack config
--scope
site
add
"config:build_jobs:
${
jobs
}
"
\
&&
spack config
--scope
user
add
"config:build_jobs:
${
jobs
}
"
\
&&
spack config
--scope
site
add
"config:db_lock_timeout:
${
jobs
}
0"
\
&&
spack config
--scope
user
add
"config:db_lock_timeout:
${
jobs
}
0"
\
&&
spack config
--scope
site
add
"config:
install_tree:root:/opt/software
"
\
&&
spack config
--scope
user
add
"config:
source_cache:/var/cache/spack
"
\
&&
spack config
--scope
site
add
"config:
source_cache:/var/cache/spack
"
\
&&
spack config
--scope
user
add
"config:
install_tree:root:/opt/software
"
\
&&
spack config
--scope
site
add
"config:ccache:true"
\
&&
spack config
--scope
user
add
"config:ccache:true"
\
&&
spack config blame config
\
&&
spack config blame config
\
&&
spack compiler find
--scope
site
\
&&
spack compiler find
--scope
site
\
&&
spack config blame compilers
&&
spack config blame compilers
...
@@ -88,7 +88,7 @@ ARG EICSPACK_ORGREPO="eic/eic-spack"
...
@@ -88,7 +88,7 @@ ARG EICSPACK_ORGREPO="eic/eic-spack"
ARG
EICSPACK_VERSION="$SPACK_VERSION"
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
git clone https://github.com/
${
EICSPACK_ORGREPO
}
.git
${
EICSPACK_ROOT
}
\
RUN
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
\
git
-C
${
EICSPACK_ROOT
}
cherry-pick
-n
${
EICSPACK_CHERRYPICKS
}
;
\
git
-C
${
EICSPACK_ROOT
}
cherry-pick
-n
${
EICSPACK_CHERRYPICKS
}
;
\
...
@@ -235,6 +235,16 @@ RUN --mount=from=staging,target=/staging \
...
@@ -235,6 +235,16 @@ RUN --mount=from=staging,target=/staging \
&&
cp
/staging/etc/jug_info /etc/jug_info
\
&&
cp
/staging/etc/jug_info /etc/jug_info
\
&&
cp
-r
/staging/.singularity.d /.singularity.d
&&
cp
-r
/staging/.singularity.d /.singularity.d
## set the local spack configuration
ENV
SPACK_DISABLE_LOCAL_CONFIG="true"
RUN
.
/opt/spack/share/spack/setup-env.sh
\
&&
spack config
--scope
site add
"config:install_tree:root:~/spack"
\
&&
spack config
--scope
site add
"config:source_cache:~/.spack/cache"
\
&&
spack config
--scope
site add
"config:binary_index_root:~/.spack"
\
&&
spack config blame config
\
&&
spack config
--scope
site add
"upstreams:eic-shell:install_tree:/opt/software"
\
&&
spack config blame upstreams
## set the jug_dev version and add the afterburner
## set the jug_dev version and add the afterburner
ARG
JUG_VERSION=1
ARG
JUG_VERSION=1
RUN
echo
""
>>
/etc/jug_info
\
RUN
echo
""
>>
/etc/jug_info
\
...
...
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