mirror of
https://github.com/containers/podman.git
synced 2025-12-11 09:18:34 +08:00
Use buildah commit and bud in podman
Vendor in buildah and use as much of commit and bug as possible for podman build and commit. Resolves #586 Signed-off-by: baude <bbaude@redhat.com> Closes: #681 Approved by: mheon
This commit is contained in:
17
vendor/github.com/projectatomic/buildah/mount.go
generated
vendored
Normal file
17
vendor/github.com/projectatomic/buildah/mount.go
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
package buildah
|
||||
|
||||
// Mount mounts a container's root filesystem in a location which can be
|
||||
// accessed from the host, and returns the location.
|
||||
func (b *Builder) Mount(label string) (string, error) {
|
||||
mountpoint, err := b.store.Mount(b.ContainerID, label)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
b.MountPoint = mountpoint
|
||||
|
||||
err = b.Save()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return mountpoint, nil
|
||||
}
|
||||
Reference in New Issue
Block a user