In order to use the images in environments which require the use of a proxy repository (Nexus, Artifactory, ...), an option could be to react to the presnece of specific environment variables in order to make the necessary actions to use such proxy repositories.
This PR proposes the uses of these three environment variables, following the tools actually used in the various images :
PIP_REPOSITORY
CONDA_REPOSITORY
R_REPOSITORY
The actual implementation behind "using the proxy repositories" is completely open for change. Namely, here are two things that come to mind :
For PIP, we chose to use the pip config set command ; another possibility according to the documentation could be to create a PIP_INDEX_URL environment variable. I don't have the necessary experience to see if one option is better than the other.
For the R repository, the only implementation we could think of was to append to a configuration file parsed by R. For readability, this was implemented with a heredoc... but at the cost of using tabulations for the relevant lines (see also : https://unix.stackexchange.com/a/76483). This also means that any auto-linting tool could remove said tabs, and break the configuration in doing so. If you feel this is a somewhat decent risk, then maybe we need to think of another way of implementing this.
In order to use the images in environments which require the use of a proxy repository (Nexus, Artifactory, ...), an option could be to react to the presnece of specific environment variables in order to make the necessary actions to use such proxy repositories.
This PR proposes the uses of these three environment variables, following the tools actually used in the various images :
The actual implementation behind "using the proxy repositories" is completely open for change. Namely, here are two things that come to mind :
pip config set
command ; another possibility according to the documentation could be to create a PIP_INDEX_URL environment variable. I don't have the necessary experience to see if one option is better than the other.