mirror of
https://github.com/containers/podman.git
synced 2025-06-19 08:09:12 +08:00
Bump to Buildah v1.8.2
As the title suggests. Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
This commit is contained in:
@ -94,7 +94,7 @@ k8s.io/apimachinery kubernetes-1.10.13-beta.0 https://github.com/kubernetes/apim
|
||||
k8s.io/client-go kubernetes-1.10.13-beta.0 https://github.com/kubernetes/client-go
|
||||
github.com/mrunalp/fileutils 7d4729fb36185a7c1719923406c9d40e54fb93c7
|
||||
github.com/varlink/go 64e07fabffa33e385817b41971cf2674f692f391
|
||||
github.com/containers/buildah v1.8.1
|
||||
github.com/containers/buildah v1.8.2
|
||||
# TODO: Gotty has not been updated since 2012. Can we find replacement?
|
||||
github.com/Nvveen/Gotty cd527374f1e5bff4938207604a14f2e38a9cf512
|
||||
github.com/fsouza/go-dockerclient v1.3.0
|
||||
|
2
vendor/github.com/containers/buildah/buildah.go
generated
vendored
2
vendor/github.com/containers/buildah/buildah.go
generated
vendored
@ -26,7 +26,7 @@ const (
|
||||
Package = "buildah"
|
||||
// Version for the Package. Bump version in contrib/rpm/buildah.spec
|
||||
// too.
|
||||
Version = "1.8.1"
|
||||
Version = "1.8.2"
|
||||
// The value we use to identify what type of information, currently a
|
||||
// serialized Builder structure, we are using as per-container state.
|
||||
// This should only be changed when we make incompatible changes to
|
||||
|
30
vendor/github.com/containers/buildah/pkg/parse/parse.go
generated
vendored
30
vendor/github.com/containers/buildah/pkg/parse/parse.go
generated
vendored
@ -287,8 +287,8 @@ func SystemContextFromOptions(c *cobra.Command) (*types.SystemContext, error) {
|
||||
ctx.SignaturePolicyPath = sigPolicy
|
||||
}
|
||||
authfile, err := c.Flags().GetString("authfile")
|
||||
if err == nil && c.Flag("authfile").Changed {
|
||||
ctx.AuthFilePath = authfile
|
||||
if err == nil {
|
||||
ctx.AuthFilePath = getAuthFile(authfile)
|
||||
}
|
||||
regConf, err := c.Flags().GetString("registries-conf")
|
||||
if err == nil && c.Flag("registries-conf").Changed {
|
||||
@ -302,6 +302,13 @@ func SystemContextFromOptions(c *cobra.Command) (*types.SystemContext, error) {
|
||||
return ctx, nil
|
||||
}
|
||||
|
||||
func getAuthFile(authfile string) string {
|
||||
if authfile != "" {
|
||||
return authfile
|
||||
}
|
||||
return os.Getenv("REGISTRY_AUTH_FILE")
|
||||
}
|
||||
|
||||
func parseCreds(creds string) (string, string) {
|
||||
if creds == "" {
|
||||
return "", ""
|
||||
@ -576,3 +583,22 @@ func IsolationOption(c *cobra.Command) (buildah.Isolation, error) {
|
||||
}
|
||||
return defaultIsolation()
|
||||
}
|
||||
|
||||
// ScrubServer removes 'http://' or 'https://' from the front of the
|
||||
// server/registry string if either is there. This will be mostly used
|
||||
// for user input from 'buildah login' and 'buildah logout'.
|
||||
func ScrubServer(server string) string {
|
||||
server = strings.TrimPrefix(server, "https://")
|
||||
return strings.TrimPrefix(server, "http://")
|
||||
}
|
||||
|
||||
// RegistryFromFullName gets the registry from the input. If the input is of the form
|
||||
// quay.io/myuser/myimage, it will parse it and just return quay.io
|
||||
// It also returns true if a full image name was given
|
||||
func RegistryFromFullName(input string) string {
|
||||
split := strings.Split(input, "/")
|
||||
if len(split) > 1 {
|
||||
return split[0]
|
||||
}
|
||||
return split[0]
|
||||
}
|
||||
|
2
vendor/github.com/containers/buildah/vendor.conf
generated
vendored
2
vendor/github.com/containers/buildah/vendor.conf
generated
vendored
@ -8,7 +8,7 @@ github.com/vbauerster/mpb v3.3.4
|
||||
github.com/mattn/go-isatty v0.0.4
|
||||
github.com/VividCortex/ewma v1.1.1
|
||||
github.com/boltdb/bolt v1.3.1
|
||||
github.com/containers/storage v1.12.3
|
||||
github.com/containers/storage v1.12.6
|
||||
github.com/docker/distribution 5f6282db7d65e6d72ad7c2cc66310724a57be716
|
||||
github.com/docker/docker 54dddadc7d5d89fe0be88f76979f6f6ab0dede83
|
||||
github.com/docker/docker-credential-helpers v0.6.1
|
||||
|
Reference in New Issue
Block a user