Skip to content

Commit

Permalink
Nytt image: rstudio (#32)
Browse files Browse the repository at this point in the history
Hentet fra https://github.com/Rapporteket/rstudio

Til bruk sammen med ShinyProxy

Closes #29
  • Loading branch information
arnfinn authored Jan 8, 2024
1 parent 6ef72bf commit 73aea2e
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
matrix:
config:
- {name: code-server}
- {name: rstudio}
name: ${{ matrix.config.name }}
steps:
- name: Check out the repo
Expand Down
11 changes: 11 additions & 0 deletions rstudio/03_setup_root_path.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/with-contenv bash

echo "root path: $WWW_ROOT_PATH"

if [[ ! -z $WWW_ROOT_PATH ]]
then
echo "Set www-root-path to $WWW_ROOT_PATH"
echo "www-root-path=$WWW_ROOT_PATH" >> /etc/rstudio/rserver.conf
else
echo "Not setting www-root-path"
fi
3 changes: 3 additions & 0 deletions rstudio/04_copy_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bash

printenv >> /home/$USER/.Renviron
10 changes: 10 additions & 0 deletions rstudio/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM rocker/verse:4.3.2

LABEL maintainer "Arnfinn Hykkerud Steindal <[email protected]>"

RUN echo "www-frame-origin=same" >> /etc/rstudio/disable_auth_rserver.conf \
&& echo "www-verify-user-agent=0" >> /etc/rstudio/disable_auth_rserver.conf

COPY 03_setup_root_path.sh /etc/cont-init.d/03_setup_root_path.sh

COPY 04_copy_env.sh /etc/cont-init.d/04_copy_env.sh

0 comments on commit 73aea2e

Please sign in to comment.