Skip to content

Commit

Permalink
py 311 added grabbing proxy-related env vars from container context a…
Browse files Browse the repository at this point in the history
…nd setting them in R

Signed-off-by: shalberd <[email protected]>
  • Loading branch information
shalberd committed Dec 5, 2024
1 parent 9ffda51 commit 1f79790
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rstudio/c9s-python-3.11/run-rstudio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ do
fi
done
# 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)
# (which breaks kubectl, to fix this we store the KUBERNETES_* and proxy_related env vars in Renviron.site)
# proxy_related env vars need to be lowercase by key to work in RStudio
env | grep KUBERNETES_ >> /usr/lib64/R/etc/Renviron.site
env | grep HTTP_PROXY | tr '[:upper:]' '[:lower:]' >> /usr/lib64/R/etc/Renviron.site
env | grep HTTPS_PROXY | tr '[:upper:]' '[:lower:]' >> /usr/lib64/R/etc/Renviron.site
env | grep NO_PROXY | tr '[:upper:]' '[:lower:]' >> /usr/lib64/R/etc/Renviron.site

export USER=$(whoami)

Expand Down

0 comments on commit 1f79790

Please sign in to comment.