diff --git a/Makefile b/Makefile index 67f4dcfd..b8b782d3 100644 --- a/Makefile +++ b/Makefile @@ -14,12 +14,12 @@ OWNER?=jupyter MULTI_IMAGES:= \ base-notebook \ minimal-notebook \ + r-notebook \ scipy-notebook \ pyspark-notebook \ all-spark-notebook # Images that can only be built on the amd64 architecture (aka. x86_64) AMD64_ONLY_IMAGES:= \ - r-notebook \ datascience-notebook \ tensorflow-notebook # All of the images diff --git a/datascience-notebook/Dockerfile b/datascience-notebook/Dockerfile index f7a586de..2cffa915 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 diff --git a/r-notebook/Dockerfile b/r-notebook/Dockerfile index d2110b15..4083e58f 100644 --- a/r-notebook/Dockerfile +++ b/r-notebook/Dockerfile @@ -40,13 +40,23 @@ RUN mamba install --quiet --yes \ 'r-nycflights13' \ 'r-randomforest' \ 'r-rcurl' \ - 'r-rmarkdown' \ 'r-rodbc' \ 'r-rsqlite' \ 'r-shiny' \ - 'r-tidymodels' \ - 'r-tidyverse' \ '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;