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
Compare revisions
2a57bf60ecac921bc525e17109f5be6000d1cd79 to 7af2f40adee60ec60e93ef096f6b46c93a33c326
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
containers/eic_container
Select target project
No results found
7af2f40adee60ec60e93ef096f6b46c93a33c326
Select Git revision
Swap
Target
containers/eic_container
Select target project
containers/eic_container
wdconinc/eic_container
tooba/eic_container
3 results
2a57bf60ecac921bc525e17109f5be6000d1cd79
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
fix: spack:config:environments_root:~/.spack/env
· b7411e26
Wouter Deconinck
authored
1 year ago
b7411e26
fix: cp from staging using docker COPY
· 7af2f40a
Wouter Deconinck
authored
1 year ago
7af2f40a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
containers/jug/dev.Dockerfile
+16
-15
16 additions, 15 deletions
containers/jug/dev.Dockerfile
with
16 additions
and
15 deletions
containers/jug/dev.Dockerfile
View file @
7af2f40a
...
...
@@ -218,22 +218,21 @@ LABEL maintainer="Sylvester Joosten <sjoosten@anl.gov>" \
name="jug_xl" \
march="$TARGETPLATFORM"
## copy over everything we need from staging in a single layer :-)
RUN
--mount
=
from
=
staging,target
=
/staging
\
rm
-rf
/usr/local
\
&&
cp
-r
/staging/opt/spack /opt/spack
\
&&
cp
-r
/staging/opt/spack-environment /opt/spack-environment
\
&&
cp
-r
/staging/opt/software /opt/software
\
&&
cp
-r
/staging/usr/._local /usr/._local
\
&&
cd
/usr/._local
\
&&
PREFIX_PATH
=
$(
realpath
$(
ls
|
tail
-n1
))
\
## copy over everything we need from staging
COPY
--from=staging /opt/spack /opt/spack
COPY
--from=staging /opt/spack-environment /opt/spack-environment
COPY
--from=staging /opt/software /opt/software
COPY
--from=staging /usr/._local /usr/._local
COPY
--from=staging /etc/profile.d /etc/profile.d
COPY
--from=staging /etc/jug_info /etc/jug_info
COPY
--from=staging /etc/eic-env.sh /etc/eic-env.sh
COPY
--from=staging /.singularity.d /.singularity.d
## ensure /usr/local link is pointing to the right view
RUN
rm
-rf
/usr/local
\
&&
PREFIX_PATH
=
$(
realpath
$(
ls
/usr/._local/ |
tail
-n1
))
\
&&
echo
"Found spack true prefix path to be
$PREFIX_PATH
"
\
&&
cd
-
\
&&
ln
-s
${
PREFIX_PATH
}
/usr/local
\
&&
cp
/staging/etc/profile.d/
*
.sh /etc/profile.d/
\
&&
cp
/staging/etc/eic-env.sh /etc/eic-env.sh
\
&&
cp
/staging/etc/jug_info /etc/jug_info
\
&&
cp
-r
/staging/.singularity.d /.singularity.d
&&
ln
-s
/usr/._local/
${
PREFIX_PATH
}
/usr/local
## set the local spack configuration
ENV
SPACK_DISABLE_LOCAL_CONFIG="true"
...
...
@@ -241,6 +240,8 @@ 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
--scope
site add
"config:environments_root:~/.spack/env"
\
&&
spack config
--scope
site add
"config:suppress_gpg_warnings:true"
\
&&
spack config blame config
\
&&
spack config
--scope
site add
"upstreams:eic-shell:install_tree:/opt/software"
\
&&
spack config blame upstreams
...
...
This diff is collapsed.
Click to expand it.