Contents
CEKit supports following builder engines:
This builder uses Docker daemon as the build engine. Interaction with Docker daemon is done via Python binding.
--pull
--tag
--no-squash
Building Docker image
$ cekit build docker
It is possible to use environment variables to let CEKit know where is the Docker daemon located it should connect to.
Note
Read more about Docker daemon settings related to exposing it to clients.
By default, if you do not specify anything, CEKit will try to use a locally running Docker daemon.
If you need to customize this behavior (for example when you want to use Docker daemon running in a VM) you can set following environment variables:
DOCKER_HOST
The DOCKER_HOST
environment variable is where you specify where the Daemon is running. It supports
multiple protocols, but the most widely used ones are: unix://
(where you specify path to a local
socket) and tcp://
(where you can define host location and port).
Examples of DOCKER_HOST
: unix:///var/run/docker.sock
, tcp://192.168.22.33:1234
.
Depending how your daemon is configured you may need to configure settings related to encryption.
# Connect to a remote Docker daemon
$ DOCKER_HOST="tcp://192.168.22.33:1234" cekit build docker
DOCKER_TLS_VERIFY
DOCKER_TLS_VERIFY
to a non-empty value to indicate that the TLS verification should
take place. By default certificate verification is disabled.DOCKER_CERT_PATH
DOCKER_CERT_PATH
environment variable to a directory containing certificates to use when
connecting to the Docker daemon.This build engine is using rhpkg
or fedpkg
tool to build the image using OSBS service. By default
it performs scratch build. If you need a proper build you need to specify --release
parameter.
--release
--tech-preview
--user
--nowait
--stage
--koji-target
koji
target--commit-message
--sync-only
--assume-yes
Performing scratch build
$ cekit build osbs
Performing release build
$ cekit build osbs --release
This build engine is using Buildah.
Note
If you need to use any non default registry, please update /etc/containers/registry.conf
file.
--pull
--tag
Build image using Buildah
$ cekit build buildah
Build image using Buildah and tag it as example/image:1.0
$ cekit build buildah --tag example/image:1.0
This build engine is using Podman. Podman will perform non-privileged builds so no special configuration is required.
--pull
--tag
Build image using Podman
$ cekit build podman
Build image using Podman
$ cekit build podman --pull