Skip to content

Commit

Permalink
New user settings file
Browse files Browse the repository at this point in the history
  • Loading branch information
almahmoud committed Nov 7, 2022
1 parent 4b85659 commit 5ac625a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions anvil-rstudio-bioconductor-devel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ RUN usermod -g users rstudio \

ENV RSTUDIO_PORT 8001
ENV RSTUDIO_HOME /etc/rstudio
ENV RSTUDIO_USERSETTING /home/rstudio/.rstudio/monitored/user-settings/user-settings
ENV RSTUDIO_USERSETTING /home/rstudio/.config/rstudio/rstudio-prefs.json

ADD rserver.conf $RSTUDIO_HOME/rserver.conf

RUN sed -i 's/alwaysSaveHistory="0"/alwaysSaveHistory="1"/g' $RSTUDIO_USERSETTING \
&& sed -i 's/loadRData="0"/loadRData="1"/g' $RSTUDIO_USERSETTING \
&& sed -i 's/saveAction="0"/saveAction="1"/g' $RSTUDIO_USERSETTING
RUN sed -i 's/"always_save_history": false/"always_save_history": true/g' $RSTUDIO_USERSETTING \
&& sed -i 's/"save_workspace": "never"/"save_workspace": "always"/g' $RSTUDIO_USERSETTING

EXPOSE $RSTUDIO_PORT

Expand Down

0 comments on commit 5ac625a

Please sign in to comment.