Exposition des variables http_proxy* dans le conteneur

This commit is contained in:
wpetit 2017-02-10 15:31:42 +01:00
parent 97df663236
commit 24dbf2fe47

View File

@ -119,6 +119,10 @@ if __name__ == "__main__":
"--volume=tamarin-hooks,kind=host,source={:s}".format(tamarin.get_hooks_dir()),
"--volume=tamarin-lib,kind=host,source={:s}".format(tamarin.get_lib_dir()),
"--volume=tamarin-profiles,kind=host,source={:s}".format(tamarin.get_profiles_dir()),
"--set-env=HTTP_PROXY={:s}".format(os.environ['HTTP_PROXY']),
"--set-env=HTTPS_PROXY={:s}".format(os.environ['HTTP_PROXY']),
"--set-env=http_proxy={:s}".format(os.environ['http_proxy']),
"--set-env=https_proxy={:s}".format(os.environ['https_proxy']),
#"--interactive", "--exec", "/bin/bash"
"--exec", "/usr/bin/python3", "--", "/tamarin/lib/build.py", args.profile, args.architecture
], as_root=True)