Merge "Add proxy support during iso generation"

This commit is contained in:
Zuul 2020-03-09 15:43:47 +00:00 committed by Gerrit Code Review
commit ca104e5577
1 changed files with 8 additions and 1 deletions

View File

@ -137,7 +137,14 @@ func generateBootstrapIso(
[]string{},
nil,
vols,
[]string{fmt.Sprintf("BUILDER_CONFIG=%s", builderCfgLocation)},
[]string{
fmt.Sprintf("BUILDER_CONFIG=%s", builderCfgLocation),
fmt.Sprintf("http_proxy=%s", os.Getenv("http_proxy")),
fmt.Sprintf("https_proxy=%s", os.Getenv("https_proxy")),
fmt.Sprintf("HTTP_PROXY=%s", os.Getenv("HTTP_PROXY")),
fmt.Sprintf("HTTPS_PROXY=%s", os.Getenv("HTTPS_PROXY")),
fmt.Sprintf("NO_PROXY=%s", os.Getenv("NO_PROXY")),
},
debug,
); err != nil {
return err