-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hentet fra https://github.com/Rapporteket/rstudio Til bruk sammen med ShinyProxy Closes #29
- Loading branch information
Showing
4 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/with-contenv bash | ||
|
||
printenv >> /home/$USER/.Renviron |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |