From 21e4f1ab3e563b75e0f40b8d789225daf3919d51 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Fri, 4 Feb 2022 11:57:26 +0300 Subject: [PATCH] Revert "Remove mamba pin for aarch64" This reverts commit 62723b7d46d11eb4f9848d286876de0192c4a60a. --- base-notebook/Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/base-notebook/Dockerfile b/base-notebook/Dockerfile index 7b884e48..e27a58e7 100644 --- a/base-notebook/Dockerfile +++ b/base-notebook/Dockerfile @@ -121,6 +121,18 @@ RUN set -x && \ fix-permissions "${CONDA_DIR}" && \ fix-permissions "/home/${NB_USER}" +# Using fixed version of mamba in arm, because the latest one has problems with arm under qemu +# See: https://github.com/jupyter/docker-stacks/issues/1539 +RUN set -x && \ + arch=$(uname -m) && \ + if [ "${arch}" == "aarch64" ]; then \ + mamba install --quiet --yes \ + 'mamba<0.18' && \ + mamba clean --all -f -y && \ + fix-permissions "${CONDA_DIR}" && \ + fix-permissions "/home/${NB_USER}"; \ + fi; + # Install Jupyter Notebook, Lab, and Hub # Generate a notebook server config # Cleanup temporary files