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