Skip to content

Commit

Permalink
Install r-tidymodels on aarch64 images (#1879)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathbunnyru committed Feb 17, 2023
1 parent 0baeda6 commit cde8b43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
12 changes: 1 addition & 11 deletions datascience-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,24 +79,14 @@ RUN mamba install --quiet --yes \
'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}"

# `r-tidymodels` is not easy to install under aarch64
RUN set -x && \
arch=$(uname -m) && \
if [ "${arch}" == "x86_64" ]; then \
mamba install --quiet --yes \
'r-tidymodels' && \
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
Expand Down
12 changes: 1 addition & 11 deletions r-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,9 @@ RUN mamba install --quiet --yes \
'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}"

# `r-tidymodels` is not easy to install under arm
RUN set -x && \
arch=$(uname -m) && \
if [ "${arch}" == "x86_64" ]; then \
mamba install --quiet --yes \
'r-tidymodels' && \
mamba clean --all -f -y && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"; \
fi;

0 comments on commit cde8b43

Please sign in to comment.