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
Merge requests
!413
fix: remove explicit writes to spack config files
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix: remove explicit writes to spack config files
wdconinc-master-patch-87361
into
master
Overview
0
Commits
2
Pipelines
0
Changes
1
Merged
Wouter Deconinck
requested to merge
wdconinc-master-patch-87361
into
master
2 years ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
Instead of writing directly, it makes more sense to use the spack interfaces to write.
0
0
Merge request reports
Compare
master
version 1
30a84f65
2 years ago
master (base)
and
latest version
latest version
603fdb40
2 commits,
2 years ago
version 1
30a84f65
1 commit,
2 years ago
1 file
+
8
−
18
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
containers/jug/dev.Dockerfile
+
8
−
18
Options
@@ -28,34 +28,24 @@ ARG SPACK_ORGREPO="spack/spack"
ARG
SPACK_VERSION="develop"
ARG
SPACK_CHERRYPICKS=""
ADD
https://api.github.com/repos/${SPACK_ORGREPO}/commits/${SPACK_VERSION} /tmp/spack.json
RUN
echo
"Part 1: regular spack install (as in containerize)"
\
&&
git clone https://github.com/
${
SPACK_ORGREPO
}
.git
${
SPACK_ROOT
}
\
RUN
git clone https://github.com/
${
SPACK_ORGREPO
}
.git
${
SPACK_ROOT
}
\
&&
git
-C
${
SPACK_ROOT
}
checkout
${
SPACK_VERSION
}
\
&&
if
[
-n
"
$SPACK_CHERRYPICKS
"
]
;
then
\
git
-C
${
SPACK_ROOT
}
cherry-pick
-n
$SPACK_CHERRYPICKS
;
\
fi
\
&&
echo
'export LD_LIBRARY_PATH=/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH'
\
>> $SPACK_ROOT/share/setup-env.sh \
&&
ln
-s
$SPACK_ROOT
/share/spack/docker/entrypoint.bash
\
/usr/sbin/docker-shell
\
&&
ln
-s
$SPACK_ROOT
/share/spack/docker/entrypoint.bash
\
/usr/sbin/interactive-shell
\
&&
ln
-s
$SPACK_ROOT
/share/spack/docker/entrypoint.bash
\
/usr/sbin/spack-env
\
&& echo "Part 2: Set target to generic x86_64" \
&& echo "packages:" > $SPACK_ROOT/etc/spack/packages.yaml \
&& echo " all:" >> $SPACK_ROOT/etc/spack/packages.yaml \
&& echo " target: [x86_64]" >> $SPACK_ROOT/etc/spack/packages.yaml \
&& cat $SPACK_ROOT/etc/spack/packages.yaml \
&& echo "Part 3: Set config to allow use of more cores for builds" \
&& echo "(and some other settings)" \
&& echo "config:" > $SPACK_ROOT/etc/spack/config.yaml \
&& echo " suppress_gpg_warnings: true" \
>> $SPACK_ROOT/etc/spack/config.yaml \
&& echo " build_jobs: 64" >> $SPACK_ROOT/etc/spack/config.yaml \
&& echo " install_tree:" >> $SPACK_ROOT/etc/spack/config.yaml \
&& echo " root: /opt/software" >> $SPACK_ROOT/etc/spack/config.yaml \
&& cat $SPACK_ROOT/etc/spack/config.yaml
&&
export
PATH
=
${
PATH
}
:
${
SPACK_ROOT
}
/bin
\
&&
spack config
--scope
site add
"packages:all:target:[x86_64]"
\
&&
spack config blame packages
\
&&
spack config
--scope
site add
"config:suppress_gpg_warnings:true"
\
&&
spack config
--scope
site add
"config:build_jobs:64"
\
&&
spack config
--scope
site add
"config:install_tree:root:/opt/software"
\
&&
spack config blame config
SHELL
["docker-shell"]
Loading