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

use https version of bobconda proxy

related to #76
parent 8a150008
Branches
Tags v0.1.0
1 merge request!226use https version of bobconda proxy
Pipeline #51949 failed
...@@ -232,7 +232,7 @@ def ensure_miniconda_sh(): ...@@ -232,7 +232,7 @@ def ensure_miniconda_sh():
# re-downloads installer # re-downloads installer
import http.client import http.client
server = ("bobconda.lab.idiap.ch", 8000) # http server = ("https://bobconda.lab.idiap.ch", 8443) # http
logger.info("Connecting to http://%s:%d...", *server) logger.info("Connecting to http://%s:%d...", *server)
conn = http.client.HTTPConnection(server[0], port=server[1]) conn = http.client.HTTPConnection(server[0], port=server[1])
...@@ -457,13 +457,13 @@ if __name__ == "__main__": ...@@ -457,13 +457,13 @@ if __name__ == "__main__":
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/pkgs/main by
# http://bobconda.lab.idiap.ch:8000, so it is optimized for # https://bobconda.lab.idiap.ch:8443, so it is optimized for
# a CI build. Notice we consider this script is only executed in this # a CI build. Notice we consider this script is only executed in this
# context. The URL should NOT work outside of Idiap's network. # context. The URL should NOT work outside of Idiap's network.
f.write( f.write(
_BASE_CONDARC.replace( _BASE_CONDARC.replace(
"https://repo.anaconda.com", "https://repo.anaconda.com",
"http://bobconda.lab.idiap.ch:8000", "https://bobconda.lab.idiap.ch:8443",
) )
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment