From 2d38b4519ef3c8128d539a2121c7ea9327697a82 Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Fri, 8 Dec 2023 15:08:01 +0100 Subject: [PATCH] Pinning mamba version to 1.5.2 --- .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" {