diskimage-builder/diskimage_builder/elements/containerfile
Ian Wienand 41aa936fa2
tox jobs: pin to correct nodesets; use host networking for containerfile
These must have broken when we switched the base nodes to Jammy.
Update to use compatible versions of distros.

We need to squish another gate-breaking change in here to update the
containerfile "podman build" calls to use "--network host".  We added
this with Ia885237406bf4c7b9d49b349f374558ae746401f and the only
external user I can find is kayobe, which is setting this anyway.

I honestly haven't 100% root-caused what changed to require this; the
last time our containerfile jobs ran and worked has unfortunately been
purged so I can't compare versions to try and pinpoint something;
i.e. this may be a podman bug or feature.  At first I thought it
related to the networking plugin package from the Depends-On (which is
still useful for the right packages) but that didn't help get the
bridge networking working.

Depends-On: https://review.opendev.org/c/zuul/nodepool/+/867590
Change-Id: I23f091654cb212e8bdd908664b262de9bfe98cef
2022-12-16 09:52:46 +11:00
..
root.d tox jobs: pin to correct nodesets; use host networking for containerfile 2022-12-16 09:52:46 +11:00
test-elements/jammy-build-succeeds containerfile: update test to jammy 2022-04-22 14:48:18 +10:00
README.rst containerfile: Add support for setting network driver 2022-03-15 13:18:11 +00: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_RUNTIME to docker to use Docker for building images (default is podman).

Set DIB_CONTAINERFILE_RUNTIME_ROOT to 1 to run the runtime (Docker or podman, per above) as root.

Set DIB_CONTAINERFILE_NETWORK_DRIVER to a network driver of your choice (e.g. host) to use it instead of the default bridge during build.