Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add notebook-server-rstudio-tidyverse dockerfile and CI/CD #5711

Merged
merged 2 commits into from
Mar 23, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
cleanup rstudio tidyverse notebook image
  • Loading branch information
thesuperzapper authored and davidspek committed Mar 23, 2021
commit 450ab00d8eab2903b295ead95d79464823107acf
23 changes: 14 additions & 9 deletions components/example-notebook-servers/rstudio-tidyverse/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
FROM public.ecr.aws/j1r0q0g6/notebooks/notebook-servers/rstudio:master-87b7d015
FROM public.ecr.aws/j1r0q0g6/notebooks/notebook-servers/rstudio:master-15d229d4

# Switching to the root user for this installation
# is only necessary when building the image with Kaniko
# args - software versions
ARG R_TIDYVERSE_VERSION="1.3.0"

# switch to root user for conda installation
# (only necessary when installing r-tidyverse with Kaniko)
USER root

RUN conda install --quiet --yes \
'r-tidyverse=1.3.0' && \
conda clean --all -f -y && \
chown -R ${NB_USER}:users $CONDA_DIR && \
chown -R ${NB_USER}:users $HOME
# install - r-tidyverse
RUN conda install -y -q \
r-tidyverse=${R_TIDYVERSE_VERSION} \
&& conda update -y -q --all \
&& conda clean -a -f -y \
&& chown -R ${NB_USER}:users ${CONDA_DIR} \
&& chown -R ${NB_USER}:users ${HOME}

USER $NB_UID
USER ${NB_USER}