Skip to content

Commit

Permalink
Add umap, temp rstudio fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dafeliton committed Mar 17, 2024
1 parent 933b0a7 commit de6c878
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion images/datascience-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ ARG PANDAS_VERSION=2.2.1 STATSMODELS_VERSION=0.14.1

# Install essential+datascience pip packages
## mistune added for nbgrader issues
RUN pip install pillow typing-extensions tzlocal appdirs gputil mock pytest \
RUN pip install pillow typing-extensions tzlocal appdirs gputil mock pytest umap-learn \
nltk statsmodels==$STATSMODELS_VERSION pandas==$PANDAS_VERSION 'mistune>=2' --upgrade && \
pip install dpkt nose datascience && \
python -c 'import matplotlib.pyplot' && \
Expand Down
5 changes: 4 additions & 1 deletion images/rstudio-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN pip install jupyter-rsession-proxy
RUN mkdir -p /etc/rstudio && echo 'auth-minimum-user-id=100' >> /etc/rstudio/rserver.conf

## Shim in our nss-wrapper so that user getpwent() lookups succeed
RUN ( echo 'LD_PRELOAD=/opt/k8s-support/lib/libnss_wrapper.so'; echo 'NSS_WRAPPER_PASSWD=/tmp/passwd.wrap'; echo 'NSS_WRAPPER_GROUP=/tmp/group.wrap' ) >> /opt/conda/lib/R/etc/Renviron.site
RUN ( echo 'LD_PRELOAD=/opt/k8s-support/lib/libnss_wrapper.so'; echo 'NSS_WRAPPER_PASSWD=/tmp/passwd.wrap'; echo 'NSS_WRAPPER_GROUP=/tmp/group.wrap'; echo 'HOME=/home' ) >> /opt/conda/lib/R/etc/Renviron.site

## The desktop package uses /usr/lib/rstudio/bin
ENV PATH="${PATH}:/usr/lib/rstudio-server/bin" \
Expand All @@ -47,6 +47,9 @@ COPY ./test ./integration_tests /home/jovyan/

RUN chmod 777 /var/ -R

# (Temp fix?) Make jovyan accessible so that RStudio does not complain
RUN chmod 777 /home/jovyan/ -R

USER $NB_USER

# Cleanup
Expand Down

0 comments on commit de6c878

Please sign in to comment.