diskimage-builder/diskimage_builder/elements/containerfile
Ian Wienand 85e20d9852 containerfile: handle errors better
Refactor things to use explicit names, and put in a trap to cleanup
after any errors.

Currently, if the build/run/export steps fail, it leaves behind images
which eventually clog things to the point podman won't run any more
(see also https://github.com/containers/podman/pull/12233 about errors
seen due to this)

Change-Id: Ib328a07ad67e3f71f379fbf34ae7ef74e212ef1c
2021-11-10 11:42:49 +11:00
..
root.d containerfile: handle errors better 2021-11-10 11:42:49 +11:00
test-elements/focal-build-succeeds Run functional tests on Debian Bullseye 2021-10-20 09:39:27 +11:00
README.rst Run functional tests on Debian Bullseye 2021-10-20 09:39:27 +11:00
element-provides Add containerfile element 2021-05-07 13:54:59 +10:00

README.rst

containerfile

Base element for creating images from container files (aka Dockerfiles).

Usually this element will be called via a more specific distro element which provides an environment for building a full image. This element will search active elements for a container file located in containerfiles/${DIB_RELEASE}.

Alternatively, to use this element directly supply the path to a container file in the environment variable DIB_CONTAINERFILE_DOCKERFILE.

Set DIB_CONTAINERFILE_PODMAN_ROOT to 1 to run podman as root.