cki_tools.bootc_containerfile
bootc containerfile generation using Jinja2
$ cki_bootc_containerfile_render --help
usage: bootc_containerfile_render.py [-h] [output]
Render bootc containerfile template
positional arguments:
output Output path for the rendered file or stdout if not specified.
options:
-h, --help show this help message and exit
The input template can be specified via CONTAINERFILE_TEMPLATE_FILE environment
variable. If not specified, the template at
cki_tools/bootc_containerfile/containerfile.j2
will be used.
The command outputs the rendered Containerfile to stdout
except if an output
file path is specified.
The variables passed to the template are:
CREATION_TIMESTAMP
: Creation date and time for the templateBASE_IMAGE
: Base image for the container. It is selected based on the value ofkcidb_tree_name
in the pipeline and in the specific case of RHEL, the registry host can be specified usingRHEL_IMAGE_REGISTRY
environment variable.CKI_KERNEL_REPO
: Contains the value ofkernel_repofile_url
in the pipelineCI_PIPELINE_ID
: Pipeline IDCI_JOB_ID
: Job ID