summaryrefslogtreecommitdiff
path: root/pkg/bindings/images
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2020-09-30 14:31:26 -0700
committerJhon Honce <jhonce@redhat.com>2020-09-30 15:56:58 -0700
commitfad55e47307f9d7aeadfd0e11f4374afd7b0e061 (patch)
treee98e803966976e008a08c89688aa77ec5465ce14 /pkg/bindings/images
parent5954d370718f67ebb220f3dbed24a63adf5c3dae (diff)
downloadpodman-fad55e47307f9d7aeadfd0e11f4374afd7b0e061.tar.gz
podman-fad55e47307f9d7aeadfd0e11f4374afd7b0e061.tar.bz2
podman-fad55e47307f9d7aeadfd0e11f4374afd7b0e061.zip
Support --http-proxy for remote builds
* Fix misspelled parameter * add http-proxy support for builds http_proxy must be set in the podman.service unit file, for example Environment=http_proxy=<value> Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/bindings/images')
-rw-r--r--pkg/bindings/images/build.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/bindings/images/build.go b/pkg/bindings/images/build.go
index 9082670a7..e65a04f7b 100644
--- a/pkg/bindings/images/build.go
+++ b/pkg/bindings/images/build.go
@@ -60,7 +60,7 @@ func Build(ctx context.Context, containerFiles []string, options entities.BuildO
params.Set("cpushares", strconv.Itoa(int(cpuShares)))
}
if cpuSetCpus := options.CommonBuildOpts.CPUSetCPUs; len(cpuSetCpus) > 0 {
- params.Set("cpusetcpues", cpuSetCpus)
+ params.Set("cpusetcpus", cpuSetCpus)
}
if cpuPeriod := options.CommonBuildOpts.CPUPeriod; cpuPeriod > 0 {
params.Set("cpuperiod", strconv.Itoa(int(cpuPeriod)))
@@ -92,6 +92,9 @@ func Build(ctx context.Context, containerFiles []string, options entities.BuildO
}
params.Set("labels", l)
}
+ if options.CommonBuildOpts.HTTPProxy {
+ params.Set("httpproxy", "1")
+ }
stdout := io.Writer(os.Stdout)
if options.Out != nil {