diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2021-08-06 09:17:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-06 09:17:32 +0000 |
commit | 01190a397cd8342b3ae15ed286d49c880aaf35cf (patch) | |
tree | fd23ee94ef3733cebc553552e29ba998d2ba6e2e /pkg/bindings/images/build.go | |
parent | 57422d2093e2f03c8bf5101ac2eb8eb7f281c4de (diff) | |
parent | 50c6cc229e168e35bed7860bd5ef3cec1f7427c7 (diff) | |
download | podman-01190a397cd8342b3ae15ed286d49c880aaf35cf.tar.gz podman-01190a397cd8342b3ae15ed286d49c880aaf35cf.tar.bz2 podman-01190a397cd8342b3ae15ed286d49c880aaf35cf.zip |
Merge pull request #11147 from TomSweeneyRedHat/dev/tsweeney/buildah3.3
[v3.3] Bump to Buildah v1.22.0 [NO NEW TESTS NEEDED]
Diffstat (limited to 'pkg/bindings/images/build.go')
-rw-r--r-- | pkg/bindings/images/build.go | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/pkg/bindings/images/build.go b/pkg/bindings/images/build.go index a35f461a7..e1aeae244 100644 --- a/pkg/bindings/images/build.go +++ b/pkg/bindings/images/build.go @@ -74,18 +74,25 @@ func Build(ctx context.Context, containerFiles []string, options entities.BuildO } params.Set("excludes", bArgs) } - if cpuShares := options.CommonBuildOpts.CPUShares; cpuShares > 0 { - params.Set("cpushares", strconv.Itoa(int(cpuShares))) - } - if cpuSetCpus := options.CommonBuildOpts.CPUSetCPUs; len(cpuSetCpus) > 0 { - params.Set("cpusetcpus", cpuSetCpus) - } if cpuPeriod := options.CommonBuildOpts.CPUPeriod; cpuPeriod > 0 { params.Set("cpuperiod", strconv.Itoa(int(cpuPeriod))) } if cpuQuota := options.CommonBuildOpts.CPUQuota; cpuQuota > 0 { params.Set("cpuquota", strconv.Itoa(int(cpuQuota))) } + if cpuSetCpus := options.CommonBuildOpts.CPUSetCPUs; len(cpuSetCpus) > 0 { + params.Set("cpusetcpus", cpuSetCpus) + } + if cpuSetMems := options.CommonBuildOpts.CPUSetMems; len(cpuSetMems) > 0 { + params.Set("cpusetmems", cpuSetMems) + } + if cpuShares := options.CommonBuildOpts.CPUShares; cpuShares > 0 { + params.Set("cpushares", strconv.Itoa(int(cpuShares))) + } + if len(options.CommonBuildOpts.CgroupParent) > 0 { + params.Set("cgroupparent", options.CommonBuildOpts.CgroupParent) + } + params.Set("networkmode", strconv.Itoa(int(options.ConfigureNetwork))) params.Set("outputformat", options.OutputFormat) |