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
7af2f40a
Commit
7af2f40a
authored
1 year ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
fix: cp from staging using docker COPY
parent
b7411e26
No related branches found
No related tags found
1 merge request
!678
fix: cp from staging using docker COPY
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
containers/jug/dev.Dockerfile
+14
-15
14 additions, 15 deletions
containers/jug/dev.Dockerfile
with
14 additions
and
15 deletions
containers/jug/dev.Dockerfile
+
14
−
15
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"
...
...
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