spiegel_podman/vendor/github.com/containers/buildah
Aditya R 260bc3ec4c
vendor: bump containers/(storage, common, buildah, image)
Bump containers/(storage, common, buildah and image)

Changes since 2023-01-01:
 - skip mount-cache-selinux-long-name test under remote, with
   a FIXME requesting that someone see if it can be made to work.

 - skip six tests that fail under rootless-remote

 - add new --build-arg-file option:
 - update man page

Squash of:
* cf56eb1865
* 561f082772

Signed-off-by: Ed Santiago <santiago@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Signed-off-by: Aditya R <arajan@redhat.com>
2023-04-10 17:30:14 +05:30
..
bind Update vendor or containers/buildah 2022-09-23 14:12:37 -04:00
chroot vendor: bump to buildah ca578b290144 and use new cache API 2022-12-20 17:13:59 +05:30
copier vendor: bump to buildah ca578b290144 and use new cache API 2022-12-20 17:13:59 +05:30
define vendor: bump containers/(storage, common, buildah, image) 2023-04-10 17:30:14 +05:30
docker update buildah to latest and use new network stack 2022-01-12 17:40:12 +01:00
imagebuildah vendor: bump containers/(storage, common, buildah, image) 2023-04-10 17:30:14 +05:30
internal vendor: bump containers/(storage, common, buildah, image) 2023-04-10 17:30:14 +05:30
pkg vendor: bump containers/(storage, common, buildah, image) 2023-04-10 17:30:14 +05:30
util vendor: bump to buildah ca578b290144 and use new cache API 2022-12-20 17:13:59 +05:30
.cirrus.yml vendor: bump containers/(storage, common, buildah, image) 2023-04-10 17:30:14 +05:30
.gitignore Bump Buildah to v1.24.0 2022-01-27 07:03:56 -05:00
.golangci.yml Bump Buildah to v1.24.0 2022-01-27 07:03:56 -05:00
.packit.sh vendor: bump containers/(storage, common, buildah, image) 2023-04-10 17:30:14 +05:30
.packit.yaml vendor: bump containers/(storage, common, buildah, image) 2023-04-10 17:30:14 +05:30
add.go vendor: bump to buildah ca578b290144 and use new cache API 2022-12-20 17:13:59 +05:30
btrfs_installed_tag.sh short-name aliasing 2020-11-13 15:40:06 +01:00
btrfs_tag.sh short-name aliasing 2020-11-13 15:40:06 +01:00
buildah.go vendor: bump containers/(storage, common, buildah, image) 2023-04-10 17:30:14 +05:30
buildah.spec.rpkg vendor: bump containers/(storage, common, buildah, image) 2023-04-10 17:30:14 +05:30
CHANGELOG.md vendor: bump containers/(storage, common, buildah, image) 2023-04-10 17:30:14 +05:30
changelog.txt vendor: bump containers/(storage, common, buildah, image) 2023-04-10 17:30:14 +05:30
CODE-OF-CONDUCT.md Bump github.com/containers/storage from 1.32.3 to 1.32.5 2021-06-29 15:58:32 -04:00
commit.go vendor: bump to buildah ca578b290144 and use new cache API 2022-12-20 17:13:59 +05:30
common.go [NO TESTS NEEDED] Vendor in containers/buildah v1.20.0 2021-03-26 13:57:27 -04:00
config.go vendor: bump containers/(storage, common, buildah, image) 2023-04-10 17:30:14 +05:30
CONTRIBUTING.md vendor: bump to buildah ca578b290144 and use new cache API 2022-12-20 17:13:59 +05:30
delete.go Update vendor or containers/buildah 2022-09-23 14:12:37 -04:00
developmentplan.md vendor: Bump github.com/containers/buildah from 1.22.3 to 1.23.0 2021-09-15 13:30:49 +05:30
digester.go Update vendor or containers/buildah 2022-09-23 14:12:37 -04:00
image.go vendor: bump to buildah ca578b290144 and use new cache API 2022-12-20 17:13:59 +05:30
import.go Update vendor or containers/buildah 2022-09-23 14:12:37 -04:00
info.go Update vendor of containers/buildah v1.28.0 2022-10-03 10:17:14 -04:00
install.md vendor: bump containers/(storage, common, buildah, image) 2023-04-10 17:30:14 +05:30
libdm_tag.sh short-name aliasing 2020-11-13 15:40:06 +01:00
LICENSE Vendor in latest containers/buildah 2018-09-18 17:20:30 -04:00
MAINTAINERS migrate to go-modules 2019-06-24 13:20:59 +02:00
Makefile vendor: bump containers/(storage, common, buildah, image) 2023-04-10 17:30:14 +05:30
mount.go Update vendor or containers/buildah 2022-09-23 14:12:37 -04:00
new.go vendor: bump containers/(storage, common, buildah, image) 2023-04-10 17:30:14 +05:30
OWNERS update buildah to latest and use new network stack 2022-01-12 17:40:12 +01:00
pull.go Vendor in containers/(storage,image, common, buildah) 2022-07-18 10:42:04 -04:00
push.go Update vendor or containers/buildah 2022-09-23 14:12:37 -04:00
README.md vendor in latests containers/(storage, common, build, image) 2023-01-19 10:42:10 -05:00
release.sh Update vendor of containers/buildah v1.28.0 2022-10-03 10:17:14 -04:00
run.go vendor in latests containers/(storage, common, build, image) 2023-01-19 10:42:10 -05:00
run_common.go vendor in latests containers/(storage, common, build, image) 2023-01-19 10:42:10 -05:00
run_freebsd.go vendor: bump containers/(storage, common, buildah, image) 2023-04-10 17:30:14 +05:30
run_linux.go vendor: bump containers/(storage, common, buildah, image) 2023-04-10 17:30:14 +05:30
run_unix.go Vendor in containers/(storage,image, common, buildah) 2022-07-18 10:42:04 -04:00
run_unsupported.go Vendor in containers/(storage,image, common, buildah) 2022-07-18 10:42:04 -04:00
seccomp.go vendor: bump to buildah ca578b290144 and use new cache API 2022-12-20 17:13:59 +05:30
seccomp_unsupported.go Vendor in latest containers/buildah 2018-09-18 17:20:30 -04:00
SECURITY.md Bump github.com/containers/storage from 1.32.3 to 1.32.5 2021-06-29 15:58:32 -04:00
selinux.go Bump to Buildah v1.27.0 2022-08-08 22:17:51 -04:00
selinux_tag.sh Update buildah to current master 2019-08-28 14:28:18 -04:00
selinux_unsupported.go update buildah to latest and use new network stack 2022-01-12 17:40:12 +01:00
troubleshooting.md vendor: Bump github.com/containers/buildah from 1.22.3 to 1.23.0 2021-09-15 13:30:49 +05:30
unmount.go Update vendor or containers/buildah 2022-09-23 14:12:37 -04:00
util.go Update vendor or containers/buildah 2022-09-23 14:12:37 -04:00

buildah logo

Buildah - a tool that facilitates building Open Container Initiative (OCI) container images

Go Report Card

The Buildah package provides a command line tool that can be used to

  • create a working container, either from scratch or using an image as a starting point
  • create an image, either from a working container or via the instructions in a Dockerfile
  • images can be built in either the OCI image format or the traditional upstream docker image format
  • mount a working container's root filesystem for manipulation
  • unmount a working container's root filesystem
  • use the updated contents of a container's root filesystem as a filesystem layer to create a new image
  • delete a working container or an image
  • rename a local container

Buildah Information for Developers

For blogs, release announcements and more, please checkout the buildah.io website!

Buildah Demos

Changelog

Contributing

Development Plan

Installation notes

Troubleshooting Guide

Tutorials

Buildah and Podman relationship

Buildah and Podman are two complementary open-source projects that are available on most Linux platforms and both projects reside at GitHub.com with Buildah here and Podman here. Both, Buildah and Podman are command line tools that work on Open Container Initiative (OCI) images and containers. The two projects differentiate in their specialization.

Buildah specializes in building OCI images. Buildah's commands replicate all of the commands that are found in a Dockerfile. This allows building images with and without Dockerfiles while not requiring any root privileges. Buildahs ultimate goal is to provide a lower-level coreutils interface to build images. The flexibility of building images without Dockerfiles allows for the integration of other scripting languages into the build process. Buildah follows a simple fork-exec model and does not run as a daemon but it is based on a comprehensive API in golang, which can be vendored into other tools.

Podman specializes in all of the commands and functions that help you to maintain and modify OCI images, such as pulling and tagging. It also allows you to create, run, and maintain those containers created from those images. For building container images via Dockerfiles, Podman uses Buildah's golang API and can be installed independently from Buildah.

A major difference between Podman and Buildah is their concept of a container. Podman allows users to create "traditional containers" where the intent of these containers is to be long lived. While Buildah containers are really just created to allow content to be added back to the container image. An easy way to think of it is the buildah run command emulates the RUN command in a Dockerfile while the podman run command emulates the docker run command in functionality. Because of this and their underlying storage differences, you can not see Podman containers from within Buildah or vice versa.

In short, Buildah is an efficient way to create OCI images while Podman allows you to manage and maintain those images and containers in a production environment using familiar container cli commands. For more details, see the Container Tools Guide.

Example

From ./examples/lighttpd.sh:

$ cat > lighttpd.sh <<"EOF"
#!/usr/bin/env bash

set -x

ctr1=$(buildah from "${1:-fedora}")

## Get all updates and install our minimal httpd server
buildah run "$ctr1" -- dnf update -y
buildah run "$ctr1" -- dnf install -y lighttpd

## Include some buildtime annotations
buildah config --annotation "com.example.build.host=$(uname -n)" "$ctr1"

## Run our server and expose the port
buildah config --cmd "/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf" "$ctr1"
buildah config --port 80 "$ctr1"

## Commit this container to an image name
buildah commit "$ctr1" "${2:-$USER/lighttpd}"
EOF

$ chmod +x lighttpd.sh
$ ./lighttpd.sh

Commands

Command Description
buildah-add(1) Add the contents of a file, URL, or a directory to the container.
buildah-build(1) Build an image using instructions from Containerfiles or Dockerfiles.
buildah-commit(1) Create an image from a working container.
buildah-config(1) Update image configuration settings.
buildah-containers(1) List the working containers and their base images.
buildah-copy(1) Copies the contents of a file, URL, or directory into a container's working directory.
buildah-from(1) Creates a new working container, either from scratch or using a specified image as a starting point.
buildah-images(1) List images in local storage.
buildah-info(1) Display Buildah system information.
buildah-inspect(1) Inspects the configuration of a container or image.
buildah-mount(1) Mount the working container's root filesystem.
buildah-pull(1) Pull an image from the specified location.
buildah-push(1) Push an image from local storage to elsewhere.
buildah-rename(1) Rename a local container.
buildah-rm(1) Removes one or more working containers.
buildah-rmi(1) Removes one or more images.
buildah-run(1) Run a command inside of the container.
buildah-tag(1) Add an additional name to a local image.
buildah-umount(1) Unmount a working container's root file system.
buildah-unshare(1) Launch a command in a user namespace with modified ID mappings.
buildah-version(1) Display the Buildah Version Information

Future goals include:

  • more CI tests
  • additional CLI commands (?)