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 fix

Signed-off-by: shalberd <[email protected]>
  • Loading branch information
shalberd committed Dec 5, 2024
1 parent 1f79790 commit e57eb03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rstudio/c9s-python-3.11/run-rstudio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ do
fi
done
# rstudio terminal cant see environment variables set by the container runtime
# (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
# (which breaks kubectl, to fix this we store the KUBERNETES_* env vars in Renviron.site)
# Also, we store proxy-related env vars lowercased by key so RStudio projects work with proxy by default
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
Expand Down
4 changes: 2 additions & 2 deletions rstudio/c9s-python-3.9/run-rstudio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ do
fi
done
# rstudio terminal cant see environment variables set by the container runtime
# (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
# (which breaks kubectl, to fix this we store the KUBERNETES_* env vars in Renviron.site)
# Also, we store proxy-related env vars lowercased by key so RStudio projects work with proxy by default
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
Expand Down

0 comments on commit e57eb03

Please sign in to comment.