mirror of
https://github.com/containers/podman.git
synced 2025-09-29 01:35:06 +08:00
Vendor in latest buildah code
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
20
vendor/github.com/containers/buildah/run.go
generated
vendored
20
vendor/github.com/containers/buildah/run.go
generated
vendored
@ -865,7 +865,7 @@ func setupNamespaces(g *generate.Generator, namespaceOptions NamespaceOptions, i
|
||||
if err := g.AddOrReplaceLinuxNamespace(specs.UserNamespace, ""); err != nil {
|
||||
return false, nil, false, errors.Wrapf(err, "error adding new %q namespace for run", string(specs.UserNamespace))
|
||||
}
|
||||
hostUidmap, hostGidmap, err := util.GetHostIDMappings("")
|
||||
hostUidmap, hostGidmap, err := unshare.GetHostIDMappings("")
|
||||
if err != nil {
|
||||
return false, nil, false, err
|
||||
}
|
||||
@ -983,6 +983,24 @@ func (b *Builder) configureUIDGID(g *generate.Generator, mountPoint string, opti
|
||||
|
||||
func (b *Builder) configureEnvironment(g *generate.Generator, options RunOptions) {
|
||||
g.ClearProcessEnv()
|
||||
if b.CommonBuildOpts.HTTPProxy {
|
||||
for _, envSpec := range []string{
|
||||
"http_proxy",
|
||||
"HTTP_PROXY",
|
||||
"https_proxy",
|
||||
"HTTPS_PROXY",
|
||||
"ftp_proxy",
|
||||
"FTP_PROXY",
|
||||
"no_proxy",
|
||||
"NO_PROXY",
|
||||
} {
|
||||
envVal := os.Getenv(envSpec)
|
||||
if envVal != "" {
|
||||
g.AddProcessEnv(envSpec, envVal)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for _, envSpec := range append(b.Env(), options.Env...) {
|
||||
env := strings.SplitN(envSpec, "=", 2)
|
||||
if len(env) > 1 {
|
||||
|
Reference in New Issue
Block a user