From 099bdad557ec9699d2d8d9b67a8770df2c791091 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Fri, 3 Sep 2021 10:02:59 +0300 Subject: [PATCH] Fix datascience notebook --- datascience-notebook/Dockerfile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/datascience-notebook/Dockerfile b/datascience-notebook/Dockerfile index f7a586de..54f48d28 100644 --- a/datascience-notebook/Dockerfile +++ b/datascience-notebook/Dockerfile @@ -74,18 +74,28 @@ RUN mamba install --quiet --yes \ 'r-nycflights13' \ 'r-randomforest' \ 'r-rcurl' \ - 'r-rmarkdown' \ 'r-rodbc' \ 'r-rsqlite' \ 'r-shiny' \ - 'r-tidymodels' \ - 'r-tidyverse' \ 'rpy2' \ 'unixodbc' && \ mamba clean --all -f -y && \ fix-permissions "${CONDA_DIR}" && \ fix-permissions "/home/${NB_USER}" +# These packages are not easy to install under arm +RUN set -x && \ + arch=$(uname -m) && \ + if [ "${arch}" == "x86_64" ]; then \ + mamba install --quiet --yes \ + 'r-rmarkdown' \ + 'r-tidymodels' \ + 'r-tidyverse' && \ + mamba clean --all -f -y && \ + fix-permissions "${CONDA_DIR}" && \ + fix-permissions "/home/${NB_USER}"; \ + fi; \ + # Add Julia packages. # Install IJulia as jovyan and then move the kernelspec out # to the system share location. Avoids problems with runtime UID change not