Skip to content

Commit

Permalink
Don't require auth for local rstudio server
Browse files Browse the repository at this point in the history
  • Loading branch information
Jongmassey committed May 2, 2024
1 parent 14deef1 commit 0e5d20d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ RUN --mount=type=cache,target=/var/cache/apt \
RUN rm -rf /usr/library/lib/R/site-library/*
# copy the renv directory into the local site library from the OpenSAFELY R action image
COPY --chown=rstudio:rstudio --from=ghcr.io/opensafely-core/r:latest /renv/lib/R-4.0/x86_64-pc-linux-gnu/ /usr/local/lib/R/site-library
# Configure RStudio Server to run without auth
RUN echo "auth-none=1" >> /etc/rstudio/rserver.conf && echo "USER=rstudio" >> /etc/environment

# Copy the Python virtualenv from OpenSAFELY Python action image
COPY --from=ghcr.io/opensafely-core/python:v2 /opt/venv /opt/venv
Expand Down

0 comments on commit 0e5d20d

Please sign in to comment.