From 0d5225ddb4a028450bacbff22a782715bc4dc1e9 Mon Sep 17 00:00:00 2001 From: James McClung Date: Wed, 11 Mar 2026 11:04:15 -0400 Subject: [PATCH] */Dockerfile: pin the cmake version gtensor recently updated to require 3.21 or higher, so just use that --- docker/psc-cpp-ubuntu-20.04/Dockerfile | 5 ++++- docker/psc-spack-cuda-ubuntu-20.04/Dockerfile | 5 ++++- docker/psc-spack-ubuntu-20.04/Dockerfile | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/docker/psc-cpp-ubuntu-20.04/Dockerfile b/docker/psc-cpp-ubuntu-20.04/Dockerfile index 4c83050..b1ac1bb 100644 --- a/docker/psc-cpp-ubuntu-20.04/Dockerfile +++ b/docker/psc-cpp-ubuntu-20.04/Dockerfile @@ -11,10 +11,13 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ apt-transport-https ca-certificates gnupg software-properties-common wget \ libhdf5-openmpi-dev +# cmake version 3.21 is gtensor's lower bound as of March 11 2026; +# it would probably work just as well to use the "latest" cmake, but +# Docker caches RUN commands and will use the cached "latest" cmake indefinitely RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc \ | gpg --dearmor - > /etc/apt/trusted.gpg.d/kitware.gpg \ && apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main' \ && apt-get update \ - && apt-get -y install --no-install-recommends cmake + && apt-get -y install --no-install-recommends cmake=3.21.4 diff --git a/docker/psc-spack-cuda-ubuntu-20.04/Dockerfile b/docker/psc-spack-cuda-ubuntu-20.04/Dockerfile index 47084d9..8f39a66 100644 --- a/docker/psc-spack-cuda-ubuntu-20.04/Dockerfile +++ b/docker/psc-spack-cuda-ubuntu-20.04/Dockerfile @@ -14,11 +14,14 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ silversearcher-ag vim less \ && rm -rf /var/lib/apt/lists/* +# cmake version 3.21 is gtensor's lower bound as of March 11 2026; +# it would probably work just as well to use the "latest" cmake, but +# Docker caches RUN commands and will use the cached "latest" cmake indefinitely RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc \ | gpg --dearmor - > /etc/apt/trusted.gpg.d/kitware.gpg \ && apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main' \ && apt-get update \ - && apt-get -y install --no-install-recommends cmake \ + && apt-get -y install --no-install-recommends cmake=3.21.4 \ && rm -rf /var/lib/apt/lists/* RUN spack config --scope system add "packages:all:target: [haswell]" \ diff --git a/docker/psc-spack-ubuntu-20.04/Dockerfile b/docker/psc-spack-ubuntu-20.04/Dockerfile index f8b27cd..d61594c 100644 --- a/docker/psc-spack-ubuntu-20.04/Dockerfile +++ b/docker/psc-spack-ubuntu-20.04/Dockerfile @@ -14,11 +14,14 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ silversearcher-ag vim less \ && rm -rf /var/lib/apt/lists/* +# cmake version 3.21 is gtensor's lower bound as of March 11 2026; +# it would probably work just as well to use the "latest" cmake, but +# Docker caches RUN commands and will use the cached "latest" cmake indefinitely RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc \ | gpg --dearmor - > /etc/apt/trusted.gpg.d/kitware.gpg \ && apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main' \ && apt-get update \ - && apt-get -y install --no-install-recommends cmake \ + && apt-get -y install --no-install-recommends cmake=3.21.4 \ && rm -rf /var/lib/apt/lists/* RUN spack config --scope system add "packages:all:target: [haswell]" \