| 1 |
.. _build_methods: |
| 2 |
|
| 3 |
Alternative Build Methods |
| 4 |
========================= |
| 5 |
|
| 6 |
.. note:: **Abstract** |
| 7 |
|
| 8 |
Besides building an image directly on the build host with the |
| 9 |
`kiwi-ng system build` command, {kiwi} provides alternative |
| 10 |
methods to build images. The following sections describe |
| 11 |
these methods and the use cases they address. |
| 12 |
|
| 13 |
.. toctree:: |
| 14 |
:maxdepth: 1 |
| 15 |
|
| 16 |
build_methods/build_self_contained |
| 17 |
build_methods/build_based_on_containers |
| 18 |
|
| 19 |
The `boxbuild` command runs the {kiwi} build inside of a self-contained |
| 20 |
virtual machine or container, called a box. This keeps the build host |
| 21 |
free from the build tool chain, allows building as a non-root user, |
| 22 |
and allows building images for other distributions than the one |
| 23 |
running on the build host. See :ref:`self_contained` for details. |
| 24 |
|
| 25 |
The `stash` and `stackbuild` commands store {kiwi} built root trees as |
| 26 |
OCI containers and build images on top of one or more of those |
| 27 |
containers. This allows rebuilding an image without access to the |
| 28 |
original software repositories, as well as turning existing containers |
| 29 |
into any other image type supported by {kiwi}. See :ref:`stackbuild` |
| 30 |
for details. |