diff --git a/ci/docker/build_deps_spack.Dockerfile b/ci/docker/build_deps_spack.Dockerfile index d0f4a7a7aa..7bd50c6739 100644 --- a/ci/docker/build_deps_spack.Dockerfile +++ b/ci/docker/build_deps_spack.Dockerfile @@ -60,13 +60,6 @@ RUN spack compiler find # Find all external packages RUN spack external find --all --not-buildable -# Enable Spack build cache -ARG SPACK_BUILD_CACHE -ENV SPACK_BUILD_CACHE="${SPACK_BUILD_CACHE:-develop-2025-05-18}" -RUN spack mirror add ${SPACK_BUILD_CACHE} https://binaries.spack.io/${SPACK_BUILD_CACHE} && \ - spack buildcache keys --install --trust --force && \ - spack mirror remove ${SPACK_BUILD_CACHE} - # Copy Spack configuration and build recipes ARG CP2K_VERSION ENV CP2K_VERSION=${CP2K_VERSION:-ssmp} diff --git a/tools/docker/Dockerfile.test_spack b/tools/docker/Dockerfile.test_spack index 8f5766df88..a4795cf034 100644 --- a/tools/docker/Dockerfile.test_spack +++ b/tools/docker/Dockerfile.test_spack @@ -57,11 +57,6 @@ RUN spack compiler find # Find all external packages RUN spack external find --all --not-buildable -# Add public Spack cache from https://cache.spack.io -RUN spack mirror add ${SPACK_VERSION}-cache https://binaries.spack.io/${SPACK_VERSION} && \ - spack buildcache keys --install --trust --force && \ - spack mirror remove ${SPACK_VERSION}-cache - # Add local Spack cache. ARG SPACK_CACHE ENV SPACK_CACHE=${SPACK_CACHE:-"s3://spack-cache --s3-endpoint-url=http://localhost:9000"} diff --git a/tools/docker/generate_dockerfiles.py b/tools/docker/generate_dockerfiles.py index e155f0b31c..5f274ffacd 100755 --- a/tools/docker/generate_dockerfiles.py +++ b/tools/docker/generate_dockerfiles.py @@ -883,11 +883,6 @@ RUN spack compiler find # Find all external packages RUN spack external find --all --not-buildable -# Add public Spack cache from https://cache.spack.io -RUN spack mirror add ${{SPACK_VERSION}}-cache https://binaries.spack.io/${{SPACK_VERSION}} && \ - spack buildcache keys --install --trust --force && \ - spack mirror remove ${{SPACK_VERSION}}-cache - # Add local Spack cache. ARG SPACK_CACHE ENV SPACK_CACHE=${{SPACK_CACHE:-"s3://spack-cache --s3-endpoint-url=http://localhost:9000"}}