Docker: Speedup Spack build

This commit is contained in:
Rocco Meli 2023-12-20 23:22:16 +01:00 committed by GitHub
parent afdde75240
commit d8a4189bb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -56,7 +56,8 @@ RUN spack compiler find
WORKDIR /
COPY ./tools/spack/cp2k-dependencies.yaml .
RUN spack env create myenv ./cp2k-dependencies.yaml
RUN spack --env=myenv install
RUN spack -e myenv concretize -f
RUN spack -e myenv env depfile -o spack-makefile && make -j32 --file=spack-makefile SPACK_COLOR=never --output-sync=recurse
# Install CP2K sources.
WORKDIR /opt/cp2k

View file

@ -790,7 +790,8 @@ RUN spack compiler find
WORKDIR /
COPY ./tools/spack/cp2k-dependencies.yaml .
RUN spack env create myenv ./cp2k-dependencies.yaml
RUN spack --env=myenv install
RUN spack -e myenv concretize -f
RUN spack -e myenv env depfile -o spack-makefile && make -j32 --file=spack-makefile SPACK_COLOR=never --output-sync=recurse
"""