Skip to content
A tool that facilitates building OCI images
Go Shell Other
Branch: master
Clone or download

Latest commit

bors and dependabot-preview Merge #2396
2396: Bump github.com/containers/storage from 1.20.1 to 1.20.2 r=rhatdan a=dependabot-preview[bot]

Bumps [github.com/containers/storage](https://github.com/containers/storage) from 1.20.1 to 1.20.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/containers/storage/releases">github.com/containers/storage's releases</a>.</em></p>
<blockquote>
<h2>v1.20.2</h2>
<pre><code>Add back skip_mount_home
Update git validation EPOCH
build(deps): bump github.com/opencontainers/runc from 1.0.0-rc9 to 1.0.0-rc90
build(deps): bump github.com/klauspost/compress from 1.10.5 to 1.10.7
build(deps): bump github.com/stretchr/testify from 1.5.1 to 1.6.0
unbreak build on mipsen
</code></pre>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/containers/storage/commit/e43b6d0a370bf26e3147f3ab10fad29cc25620f9"><code>e43b6d0</code></a> Bump to v1.20.2</li>
<li><a href="https://github.com/containers/storage/commit/80f21246e8e6ec24acf10a2d083573ed55b4c60f"><code>80f2124</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/containers/storage/issues/639">#639</a> from rhatdan/skip</li>
<li><a href="https://github.com/containers/storage/commit/0bfdcdb942abc97a6f9c3a63c4c4b77dc849450b"><code>0bfdcdb</code></a> Add back skip_mount_home</li>
<li><a href="https://github.com/containers/storage/commit/aa26d1860a7ab2f1a79c79d9beac8ab01c9a64a0"><code>aa26d18</code></a> Update git validation EPOCH</li>
<li><a href="https://github.com/containers/storage/commit/8fad529da3a4e5dbcb3f1fc1bc009bc857a4968b"><code>8fad529</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/containers/storage/issues/637">#637</a> from containers/dependabot/go_modules/github.com/klau...</li>
<li><a href="https://github.com/containers/storage/commit/17acc0ffa10e07fd71a8d84161e269564b72b90d"><code>17acc0f</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/containers/storage/issues/638">#638</a> from containers/dependabot/go_modules/github.com/open...</li>
<li><a href="https://github.com/containers/storage/commit/24e8e852d0dc09a1cef1ebe9a20446c83129470a"><code>24e8e85</code></a> build(deps): bump github.com/opencontainers/runc</li>
<li><a href="https://github.com/containers/storage/commit/b9dafa698726b5f070599dde6038999cf62c83c2"><code>b9dafa6</code></a> build(deps): bump github.com/klauspost/compress from 1.10.6 to 1.10.7</li>
<li><a href="https://github.com/containers/storage/commit/873116d157fad490a878cdfd0277dc3fc0c34950"><code>873116d</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/containers/storage/issues/636">#636</a> from containers/dependabot/go_modules/github.com/stre...</li>
<li><a href="https://github.com/containers/storage/commit/0a7c48440c25ec26b4a710c03c957e665f4b2649"><code>0a7c484</code></a> build(deps): bump github.com/stretchr/testify from 1.5.1 to 1.6.0</li>
<li>Additional commits viewable in <a href="https://github.com/containers/storage/compare/v1.20.1...v1.20.2">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=github.com/containers/storage&package-manager=go_modules&previous-version=1.20.1&new-version=1.20.2)](https://dependabot.com/compatibility-score/?dependency-name=github.com/containers/storage&package-manager=go_modules&previous-version=1.20.1&new-version=1.20.2)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)



</details>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Latest commit 8492a3e Jun 13, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add Pull Request Template Mar 3, 2020
bind bind: don't complain about missing mountpoints Dec 6, 2019
chroot vendor in latest containers/storage 1.18.0 and containers/common v0.7.0 Mar 31, 2020
cmd/buildah Vendor in new go.etcd.io/bbolt May 25, 2020
contrib implementation of encrypt/decrypt push/pull/bud/from May 18, 2020
demos Ran buildah through codespell Nov 20, 2019
docker Move to containers/image v5.0.0 Oct 28, 2019
docs Ammended docs May 19, 2020
examples fix lighttpd example May 25, 2020
hack Cirrus: Fixes from review feedback May 4, 2020
imagebuildah Warn on unset build arguments May 21, 2020
logos updating logo reference in README Dec 13, 2017
manifests manifest push --format: force an image type, not a list type Feb 17, 2020
pkg implementation of encrypt/decrypt push/pull/bud/from May 18, 2020
tests Warn on unset build arguments May 21, 2020
util fix resolve docker image name as transport May 18, 2020
vendor Bump github.com/containers/storage from 1.20.1 to 1.20.2 Jun 10, 2020
.cirrus.yml Cirrus: Use pre-installed VM packages + F32 Apr 30, 2020
.gitignore Update gitignore to exclude test Dockerfiles Apr 13, 2020
.golangci.yml Cirrus: Fixes from review feedback May 4, 2020
CHANGELOG.md Add CVE-2020-10696 to CHANGELOG.md and changelog.txt Jun 2, 2020
CODE-OF-CONDUCT.md Add Code of Conduct Feb 8, 2020
CONTRIBUTING.md Fix errors found by codespell Mar 5, 2020
LICENSE Initial commit Jan 26, 2017
MAINTAINERS Fix becoming a maintainer link Jul 7, 2018
Makefile Run (go mod tidy) before (go mod vendor) again Apr 8, 2020
OWNERS Add OWNERS File to Buildah Oct 16, 2019
README.md Bors-ng: Add documentation and status-icon Feb 7, 2020
SECURITY.md Add Security Policy May 4, 2020
add.go Do not skip the directory when the ignore pattern matches Apr 7, 2020
bors.toml Bors: Fix no. req. github reviews Feb 7, 2020
btrfs_installed_tag.sh Update shebangs to take env into consideration Aug 20, 2019
btrfs_tag.sh Update shebangs to take env into consideration Aug 20, 2019
buildah.go implementation of encrypt/decrypt push/pull/bud/from May 18, 2020
changelog.txt Add CVE-2020-10696 to CHANGELOG.md and changelog.txt Jun 2, 2020
commit.go remove dependency on openshift struct May 22, 2020
common.go implementation of encrypt/decrypt push/pull/bud/from May 18, 2020
config.go unmarshalConvertedConfig: avoid using the updated image's ref Nov 5, 2019
delete.go Allow container storage to manage the SELinux labels Oct 21, 2018
developmentplan.md Move buildah from projecatatomic/buildah to containers/buildah Sep 18, 2018
digester.go Use content digests in ADD/COPY history entries Aug 16, 2019
go.mod Bump github.com/containers/storage from 1.20.1 to 1.20.2 Jun 10, 2020
go.sum Bump github.com/containers/storage from 1.20.1 to 1.20.2 Jun 10, 2020
image.go fix error info about get signatures for containerImageSource May 8, 2020
import.go Handle configuration blobs for manifest lists Nov 5, 2019
info.go Fix errorf conventions Apr 4, 2020
install.md Bump imagebuilder for ARG fix May 23, 2020
libdm_tag.sh Update shebangs to take env into consideration Aug 20, 2019
mount.go Make sure we log or return every error Oct 7, 2018
new.go implementation of encrypt/decrypt push/pull/bud/from May 18, 2020
new_test.go Fix: setting the container name to the image Jan 26, 2018
pull.go implementation of encrypt/decrypt push/pull/bud/from May 18, 2020
release.sh Bump to v1.1 Jun 9, 2018
run.go Add --devices flag to bud and from Sep 7, 2019
run_linux.go Fix errorf conventions Apr 4, 2020
run_test.go Fix errorf conventions Apr 4, 2020
run_unsupported.go allow podman to build a client for windows Apr 26, 2019
seccomp.go run: clear default seccomp filter if not enabled Sep 5, 2018
seccomp_unsupported.go run: clear default seccomp filter if not enabled Sep 5, 2018
selinux.go run: check if SELinux is enabled Apr 25, 2019
selinux_tag.sh Update shebangs to take env into consideration Aug 20, 2019
selinux_unsupported.go run: clear default seccomp filter if not enabled Sep 5, 2018
troubleshooting.md fix troubleshooting redirect instructions Oct 28, 2019
unmount.go Make sure we log or return every error Oct 7, 2018
util.go copyFileWithTar: close source files at the right time Jan 9, 2020

README.md

buildah logo

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

Go Report Card

Bors enabled

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. Buildah’s 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 -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
$ sudo ./lighttpd.sh

Commands

Command Description
buildah-add(1) Add the contents of a file, URL, or a directory to the container.
buildah-bud(1) Build an image using instructions from 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 (?)
You can’t perform that action at this time.