Skip to content

Commit

Permalink
Pinning mamba version to 1.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Dec 8, 2023
1 parent 184fcd1 commit 2d38b45
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 2d38b45

Please sign in to comment.