2019-12-19 18:57:03 +00:00
|
|
|
=============
|
|
|
|
containerfile
|
|
|
|
=============
|
|
|
|
|
|
|
|
Base element for creating images from container files (aka
|
|
|
|
Dockerfiles).
|
|
|
|
|
2021-05-10 00:39:24 +00:00
|
|
|
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
|
2022-03-08 13:03:27 +00:00
|
|
|
``containerfiles/${DIB_RELEASE}``.
|
2021-05-10 00:39:24 +00:00
|
|
|
|
|
|
|
Alternatively, to use this element directly supply the path to a
|
2021-10-14 23:46:29 +00:00
|
|
|
container file in the environment variable
|
2022-03-08 13:03:27 +00:00
|
|
|
``DIB_CONTAINERFILE_DOCKERFILE``.
|
2021-10-14 23:46:29 +00:00
|
|
|
|
2022-03-08 13:03:27 +00:00
|
|
|
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``.
|
2022-03-15 13:17:42 +00:00
|
|
|
|
|
|
|
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.
|