We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 532f554 + 5721e3e commit dfc40feCopy full SHA for dfc40fe
rstudio/c9s-python-3.11/run-rstudio.sh
@@ -25,7 +25,11 @@ do
25
done
26
# rstudio terminal cant see environment variables set by the container runtime
27
# (which breaks kubectl, to fix this we store the KUBERNETES_* env vars in Renviron.site)
28
-env | grep KUBERNETES_ >> /usr/lib64/R/etc/Renviron.site
+# Also, we store proxy-related env vars lowercased by key so RStudio projects work with proxy by default
29
+env | grep "^KUBERNETES_" >> /usr/lib64/R/etc/Renviron.site
30
+env | grep "^HTTP_PROXY=" | tr '[:upper:]' '[:lower:]' >> /usr/lib64/R/etc/Renviron.site
31
+env | grep "^HTTPS_PROXY=" | tr '[:upper:]' '[:lower:]' >> /usr/lib64/R/etc/Renviron.site
32
+env | grep "^NO_PROXY=" | tr '[:upper:]' '[:lower:]' >> /usr/lib64/R/etc/Renviron.site
33
34
export USER=$(whoami)
35
0 commit comments