From a6c2dbe1c434f0df7790e41632c5dc578edebb97 Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Fri, 8 Dec 2023 16:10:49 +0100 Subject: [PATCH] Docker: Pinning mamba version to 1.5.2 (#6216) The mamba versions `1.5.3` and `1.5.4` have an issue that will fail the docker build, see https://github.com/mamba-org/mamba/issues/3044. Pining the version to `1.5.2` until the problem is fixed upstream. --- .docker/aiida-core-base/Dockerfile | 5 ++++- .docker/docker-bake.hcl | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.docker/aiida-core-base/Dockerfile b/.docker/aiida-core-base/Dockerfile index 40149747e9..4f6cef58a5 100644 --- a/.docker/aiida-core-base/Dockerfile +++ b/.docker/aiida-core-base/Dockerfile @@ -104,6 +104,9 @@ USER ${SYSTEM_UID} # Pin python version here ARG PYTHON_VERSION +# Pin mamba version here +ARG MAMBA_VERSION + # Download and install Micromamba, and initialize Conda prefix. # # Similar projects using Micromamba: @@ -134,7 +137,7 @@ RUN set -x && \ --prefix="${CONDA_DIR}" \ --yes \ "${PYTHON_SPECIFIER}" \ - 'mamba' && \ + "mamba=${MAMBA_VERSION}" && \ rm micromamba && \ # Pin major.minor version of python mamba list python | grep '^python ' | tr -s ' ' | cut -d ' ' -f 1,2 >> "${CONDA_DIR}/conda-meta/pinned" && \ diff --git a/.docker/docker-bake.hcl b/.docker/docker-bake.hcl index 66f7bf5603..8ff359b772 100644 --- a/.docker/docker-bake.hcl +++ b/.docker/docker-bake.hcl @@ -51,6 +51,7 @@ target "aiida-core-base" { platforms = "${PLATFORMS}" args = { "PYTHON_VERSION" = "${PYTHON_VERSION}" + "MAMBA_VERSION" = "1.5.2" } } target "aiida-core-with-services" {