-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,19 +9,19 @@ LABEL "org.opencontainers.image.source"="https://github.com/pdidev/test_env" | |
|
||
ARG SPACK_INSTALL_ARGS="--show-log-on-error --fail-fast" | ||
|
||
RUN spack solve -I --reuse $(cat compilerpkg.lst) target=x86_64 \ | ||
&& ( if ! spack fetch -m $(cat compilerpkg.lst) ; then spack clean -a; false; fi \ | ||
|| if ! spack fetch -m $(cat compilerpkg.lst) ; then spack clean -a; false; fi \ | ||
|| if ! spack fetch -m $(cat compilerpkg.lst) ; then spack clean -a; false; fi \ | ||
|| if ! spack fetch -m $(cat compilerpkg.lst) ; then spack clean -a; false; fi \ | ||
|| if ! spack fetch -m $(cat compilerpkg.lst) ; then spack clean -a; false; fi ) \ | ||
&& spack install -j 2 ${SPACK_INSTALL_ARGS} --reuse $(cat compilerpkg.lst) target=x86_64 \ | ||
RUN spack solve -I --reuse "$(cat compilerpkg.lst)" target=x86_64 \ | ||
&& ( if ! spack fetch -m "$(cat compilerpkg.lst)" ; then spack clean -a; false; fi \ | ||
|| if ! spack fetch -m "$(cat compilerpkg.lst)" ; then spack clean -a; false; fi \ | ||
|| if ! spack fetch -m "$(cat compilerpkg.lst)" ; then spack clean -a; false; fi \ | ||
|| if ! spack fetch -m "$(cat compilerpkg.lst)" ; then spack clean -a; false; fi \ | ||
|| if ! spack fetch -m "$(cat compilerpkg.lst)" ; then spack clean -a; false; fi ) \ | ||
&& spack install ${SPACK_INSTALL_ARGS} --reuse "$(cat compilerpkg.lst)" target=x86_64 \ | ||
&& spack clean -a | ||
|
||
|
||
# Workaround clang 14.0.2 that reports version as 14.0.1 | ||
RUN spack find -v --no-groups "$(cat compilerpkg.lst)" > compilerpkg.lst \ | ||
&& spack find --no-groups "$(cat compilerpkg.lst)" > compiler.lst \ | ||
RUN spack find -v --no-groups ""$(cat compilerpkg.lst)"" > compilerpkg.lst \ | ||
&& spack find --no-groups ""$(cat compilerpkg.lst)"" > compiler.lst \ | ||
&& sed 's/llvm/clang/' -i compiler.lst \ | ||
&& sed 's/[email protected]/[email protected]/' -i compiler.lst \ | ||
&& spack clean -a | ||
|
@@ -33,7 +33,7 @@ RUN spack compiler remove --scope site -a gcc || true \ | |
&& spack compiler remove -a clang || true \ | ||
&& spack compiler remove -a gcc || true \ | ||
&& spack compiler find --scope site \ | ||
"$(spack find --format '{name}' --paths "$(cat compilerpkg.lst)" | awk '{print $2}')" \ | ||
"$(spack find --format '{name}' --paths ""$(cat compilerpkg.lst)"" | awk '{print $2}')" \ | ||
&& spack compiler remove --scope defaults -a gcc || true \ | ||
&& spack compiler remove --scope defaults -a clang || true \ | ||
&& spack compiler remove --scope system -a gcc || true \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters