3.4. Creating a system image with Image Builder in the command-line interface
This procedure shows how to build a custom image using the Image Builder command-line interface.
Prerequisites
- You have a blueprint prepared for the image.
Procedure
Start the compose:
# composer-cli compose start BLUEPRINT-NAME IMAGE-TYPEReplace BLUEPRINT-NAME with name of the blueprint, and IMAGE-TYPE with the type of image. For possible values, see output of the
composer-cli compose typescommand.The compose process starts in the background and the UUID of the compose is shown.
Wait until the compose is finished. Please, notice that this may take several minutes.
To check the status of the compose:
# composer-cli compose statusA finished compose shows a status value FINISHED. Identify the compose in the list by its UUID.
Once the compose is finished, download the resulting image file:
# composer-cli compose image UUIDReplace UUID with the UUID value shown in the previous steps.
You can also download the logs using the
composer-cli compose logs UUIDcommand, or the metadata using thecomposer-cli compose metadata UUIDcommand.