notebooks/components/example-notebook-servers/rstudio/s6/cont-init.d/02-rstudio-env-fix

5 lines
252 B
Plaintext

#!/usr/bin/with-contenv bash
# rstudio terminal cant see environment variables set by the container runtime
# (which breaks kubectl, to fix this we store the KUBERNETES_* env vars in Renviron.site)
env | grep KUBERNETES_ >> ${R_HOME}/etc/Renviron.site