Skip to content

Commit

Permalink
Docker: Pinning mamba version to 1.5.2 (#6216)
Browse files Browse the repository at this point in the history
The mamba versions `1.5.3` and `1.5.4` have an issue that will fail the docker
build, see mamba-org/mamba#3044.
Pining the version to `1.5.2` until the problem is fixed upstream.
  • Loading branch information
unkcpz authored Dec 8, 2023
1 parent 184fcd1 commit a6c2dbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .docker/aiida-core-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
# <https://github.com/mamba-org/mamba#micromamba>
# Similar projects using Micromamba:
Expand Down Expand Up @@ -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" && \
Expand Down
1 change: 1 addition & 0 deletions .docker/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit a6c2dbe

Please sign in to comment.