Skip to content

Commit

Permalink
Merge pull request #88 from ucsd-ets/no-config
Browse files Browse the repository at this point in the history
No config
  • Loading branch information
dafeliton authored Jul 23, 2024
2 parents 659f8b2 + edaae3c commit 73fc53d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion images/datascience-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ COPY /scripts/jupyter_notebook_config.py /tmp/jupyter_notebook_config_extra.py
COPY /scripts/jupyter_server_config.py /tmp/jupyter_server_config_extra.py
COPY /scripts/nbgrader_config.py /etc/jupyter/nbgrader_config.py
RUN cat /tmp/jupyter_notebook_config_extra.py >> /etc/jupyter/jupyter_notebook_config.py && \
cat /tmp/jupyter_server_config_extra.py >> /etc/jupyter/jupyter_server_config.py && \
cat /tmp/jupyter_server_config_extra.py >> /etc/jupyter/jupyter_server_config.py && \
chmod -R uga+x /usr/share/datahub/scripts/ && \
chmod -R uga+x /etc/jupyter/jupyter_notebook_config.py && \
chmod -R uga+x /etc/jupyter/jupyter_server_config.py && \
Expand Down
10 changes: 2 additions & 8 deletions images/rstudio-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ USER root

# RStudio Setup

# Ubuntu 22 setup with v 2023.12.1
# Ubuntu 22 setup with v 2024.04.2-764
## Follow instructions at https://www.rstudio.com/products/rstudio/download-server/
ENV RSTUDIO_PKG=rstudio-server-2023.12.1-402-amd64.deb
ENV RSTUDIO_PKG=rstudio-server-2024.04.2-764-amd64.deb
ENV RSTUDIO_URL=https://download2.rstudio.org/server/jammy/amd64/${RSTUDIO_PKG}

## rstudio installation expects R to live in /usr/bin, /bin/, etc.
Expand All @@ -24,9 +24,6 @@ RUN ln -s /opt/conda/bin/R /usr/bin/R && \
service rstudio-server restart

RUN pip install jupyter-rsession-proxy
# currently we have an issue where the user's default working dir is ALWAYS /home/jovyan.
# perhaps fix in our fork below?
#RUN pip install git+https://github.com/ucsd-ets/datahub-jupyter-rsession-proxy.git

RUN mkdir -p /etc/rstudio && echo 'auth-minimum-user-id=100' >> /etc/rstudio/rserver.conf

Expand All @@ -44,9 +41,6 @@ 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 73fc53d

Please sign in to comment.