Skip to content
Snippets Groups Projects
Commit 659413ea authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

[proxy] Use proxy for other channels, i.e., conda-forge, too

parent 7698d1bf
Branches
Tags
1 merge request!224[proxy] Use proxy for other channels, i.e., conda-forge, too
Pipeline #52185 passed
...@@ -22,6 +22,7 @@ conda_build: #!final ...@@ -22,6 +22,7 @@ conda_build: #!final
pkg_format: '2' pkg_format: '2'
default_channels: #!final default_channels: #!final
- https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/main
channel_alias: https://conda.anaconda.org #!final
quiet: true #!final quiet: true #!final
remote_connect_timeout_secs: 120.0 #!final remote_connect_timeout_secs: 120.0 #!final
remote_max_retries: 50 #!final remote_max_retries: 50 #!final
...@@ -461,14 +462,17 @@ if __name__ == "__main__": ...@@ -461,14 +462,17 @@ if __name__ == "__main__":
condarc = os.path.join(args.conda_root, "condarc") condarc = os.path.join(args.conda_root, "condarc")
logger.info("(create) %s", condarc) logger.info("(create) %s", condarc)
with open(condarc, "wt") as f: with open(condarc, "wt") as f:
# Replaces https://repo.anaconda.com/pkgs/main by # Replaces https://repo.anaconda.com and https://conda.anaconda.org by our
# https://bobconda.lab.idiap.ch:8443, so it is optimized for # mirrors, so it is optimized for a CI build. Notice we consider this
# a CI build. Notice we consider this script is only executed in this # script is only executed in this context. The URL should NOT work
# context. The URL should NOT work outside of Idiap's network. # outside of Idiap's network.
f.write( f.write(
_BASE_CONDARC.replace( _BASE_CONDARC.replace(
"https://repo.anaconda.com", "https://repo.anaconda.com",
"https://bobconda.lab.idiap.ch:8443", "https://bobconda.lab.idiap.ch:8443",
).replace(
"https://conda.anaconda.org",
"https://bobconda.lab.idiap.ch:9443",
) )
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment