From 6f4c7449d099836aa91ca221d0e9f5141ed84903 Mon Sep 17 00:00:00 2001 From: Jens Preussner Date: Fri, 6 Sep 2019 16:01:39 +0200 Subject: [PATCH] Pass environmental variables via ~/.Renviron --- wilson-basic/.Renviron.j2 | 8 ++++++++ wilson-basic/entrypoint.sh | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 wilson-basic/.Renviron.j2 diff --git a/wilson-basic/.Renviron.j2 b/wilson-basic/.Renviron.j2 new file mode 100644 index 0000000..8740f67 --- /dev/null +++ b/wilson-basic/.Renviron.j2 @@ -0,0 +1,8 @@ +# Define default landing page. Can be "introduction" or "feature_selection" +WILSON_LANDING_PAGE={{ "WILSON_LANDING_PAGE"|env("introduction") }} + +# Define width of the side panel +WILSON_SIDEPANELWIDTH={{ "WILSON_SIDEPANELWIDTH"|env("2") }} + +# Define with of the main panel +WILSON_MAINPANELWIDTH={{ "WILSON_MAINPANELWIDTH"|env("10") }} diff --git a/wilson-basic/entrypoint.sh b/wilson-basic/entrypoint.sh index b77656d..54002cd 100755 --- a/wilson-basic/entrypoint.sh +++ b/wilson-basic/entrypoint.sh @@ -1,4 +1,9 @@ #!/bin/bash -e + +# Render shiny-server configuration file template j2 /srv/shiny-server/shiny-server.conf.j2 > /srv/shiny-server/shiny-server.conf +# Render .Renviron file template +j2 /srv/shiny-server/.Renviron.j2 > /home/shiny/.Renviron + exec "$@" \ No newline at end of file