mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-13 13:02:56 +00:00
Remove mamba and micromamba explicit versions
This commit is contained in:
@@ -86,8 +86,6 @@ USER ${NB_UID}
|
|||||||
|
|
||||||
# Pin versions here, or set them to "default"
|
# Pin versions here, or set them to "default"
|
||||||
ARG PYTHON_VERSION=3.9
|
ARG PYTHON_VERSION=3.9
|
||||||
ARG MAMBA_VERSION=default
|
|
||||||
ARG MICROMAMBA_VERSION=default
|
|
||||||
|
|
||||||
# Setup work directory for backward-compatibility
|
# Setup work directory for backward-compatibility
|
||||||
RUN mkdir "/home/${NB_USER}/work" && \
|
RUN mkdir "/home/${NB_USER}/work" && \
|
||||||
@@ -112,15 +110,11 @@ RUN set -x && \
|
|||||||
# Should be simpler, see <https://github.com/mamba-org/mamba/issues/1437>
|
# Should be simpler, see <https://github.com/mamba-org/mamba/issues/1437>
|
||||||
arch="64"; \
|
arch="64"; \
|
||||||
fi && \
|
fi && \
|
||||||
if [[ "${MICROMAMBA_VERSION}" == "default" ]]; then MICROMAMBA_VERSION="latest"; fi && \
|
|
||||||
wget -qO /tmp/micromamba.tar.bz2 \
|
wget -qO /tmp/micromamba.tar.bz2 \
|
||||||
"https://micromamba.snakepit.net/api/micromamba/linux-${arch}/${MICROMAMBA_VERSION}" && \
|
"https://micromamba.snakepit.net/api/micromamba/linux-${arch}/latest" && \
|
||||||
tar -xvjf /tmp/micromamba.tar.bz2 --strip-components=1 bin/micromamba && \
|
tar -xvjf /tmp/micromamba.tar.bz2 --strip-components=1 bin/micromamba && \
|
||||||
rm /tmp/micromamba.tar.bz2 && \
|
rm /tmp/micromamba.tar.bz2 && \
|
||||||
PYTHON_SPECIFIER="python=${PYTHON_VERSION}" && \
|
PYTHON_SPECIFIER="python=${PYTHON_VERSION}" && \
|
||||||
if [[ "${PYTHON_VERSION}" == "default" ]]; then PYTHON_SPECIFIER="python"; fi && \
|
|
||||||
MAMBA_SPECIFIER="mamba=${MAMBA_VERSION}" && \
|
|
||||||
if [[ "${MAMBA_VERSION}" == "default" ]]; then MAMBA_SPECIFIER="mamba"; fi && \
|
|
||||||
if [ "${arch}" == "aarch64" ]; then \
|
if [ "${arch}" == "aarch64" ]; then \
|
||||||
# Prevent libmamba from sporadically hanging on arm64 under QEMU
|
# Prevent libmamba from sporadically hanging on arm64 under QEMU
|
||||||
# <https://github.com/mamba-org/mamba/issues/1611>
|
# <https://github.com/mamba-org/mamba/issues/1611>
|
||||||
@@ -132,7 +126,7 @@ RUN set -x && \
|
|||||||
--prefix="${CONDA_DIR}" \
|
--prefix="${CONDA_DIR}" \
|
||||||
--yes \
|
--yes \
|
||||||
"${PYTHON_SPECIFIER}" \
|
"${PYTHON_SPECIFIER}" \
|
||||||
"${MAMBA_SPECIFIER}" \
|
'mamba' \
|
||||||
'notebook' \
|
'notebook' \
|
||||||
'jupyterhub' \
|
'jupyterhub' \
|
||||||
'jupyterlab' && \
|
'jupyterlab' && \
|
||||||
|
Reference in New Issue
Block a user