File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 23
23
cp -r /opt/app-root/bin/Rpackages/4.4/$package_folder /opt/app-root/src/Rpackages/4.4/
24
24
fi
25
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)
26
+ # rstudio terminal can't see environment variables set by the container runtime;
27
+ # so we set all env variables to the Renviron.site config file. For kubectl, we need the KUBERNETES_* env vars at least.
28
28
# 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
29
+ env >> /usr/lib64/R/etc/Renviron.site
30
30
env | grep " ^HTTP_PROXY=" | tr ' [:upper:]' ' [:lower:]' >> /usr/lib64/R/etc/Renviron.site
31
31
env | grep " ^HTTPS_PROXY=" | tr ' [:upper:]' ' [:lower:]' >> /usr/lib64/R/etc/Renviron.site
32
32
env | grep " ^NO_PROXY=" | tr ' [:upper:]' ' [:lower:]' >> /usr/lib64/R/etc/Renviron.site
Original file line number Diff line number Diff line change 23
23
cp -r /opt/app-root/bin/Rpackages/4.4/$package_folder /opt/app-root/src/Rpackages/4.4/
24
24
fi
25
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)
26
+ # rstudio terminal can't see environment variables set by the container runtime;
27
+ # so we set all env variables to the Renviron.site config file. For kubectl, we need the KUBERNETES_* env vars at least.
28
28
# 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
29
+ env >> /usr/lib64/R/etc/Renviron.site
30
30
env | grep " ^HTTP_PROXY=" | tr ' [:upper:]' ' [:lower:]' >> /usr/lib64/R/etc/Renviron.site
31
31
env | grep " ^HTTPS_PROXY=" | tr ' [:upper:]' ' [:lower:]' >> /usr/lib64/R/etc/Renviron.site
32
32
env | grep " ^NO_PROXY=" | tr ' [:upper:]' ' [:lower:]' >> /usr/lib64/R/etc/Renviron.site
You can’t perform that action at this time.
0 commit comments