Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Pass environmental variables via ~/.Renviron
  • Loading branch information
jenzopr committed Sep 6, 2019
1 parent 316eb2a commit 6f4c744
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 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") }}
5 changes: 5 additions & 0 deletions 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 "$@"

0 comments on commit 6f4c744

Please sign in to comment.