CEKit can be configured using a configuration file. We use the ini file format.
CEKit will look for this file at the path ~/.cekit/config. Its location
can be changed via command line --config option.
Running CEKit with different config file:
$ cekit --config ~/alternative_path build
Contents
Below you can find description of available sections together with options described in detail.
The [common] section contains settings used across CEKit.
[common]
work_dir = /tmp
ssl_verify = False
cache_url = http://cache.host.com/fetch?#algorithm#=#hash#
redhat = True
work_dir~/.cekit[common]
work_dir=/tmp
ssl_verifyTrue[common]
ssl_verify = False
cache_urlSpecifies a different location that could be used to fetch artifacts. Usually this is a URL to some cache service.
You can use following substitutions:
#filename# – the file name from the url of the artifact#algorithm# – has algorithm specified for the selected artifact#hash# – value of the digest.Consider you have an image definition with artifacts section like this:
artifacts:
- url: "http://some.host.com/7.0.0/jboss-eap-7.0.0.zip"
md5: cd02482daa0398bf5500e1628d28179a
If we set the cache_url parameter in following way:
[common]
cache_url = http://cache.host.com/fetch?#algorithm#=#hash#
The JBoss EAP artifact will be fetched from: http://cache.host.com/fetch?md5=cd02482daa0398bf5500e1628d28179a.
And if we do it like this:
[common]
cache_url = http://cache.host.com/cache/#filename#
The JBoss EAP artifact will be fetched from: http://cache.host.com/cache/jboss-eap-7.0.0.zip.
redhatThis option changes CEKit default options to comply with Red Hat internal infrastructure and policies.
Tip
Read more about Red Hat environment.
False[common]
redhat = True
fetch_artifact_domainsfetch-artifacts-url must be within one of the URL domain/paths specified by this key. If not set then all URLs are added without restriction.[common]
fetch_artifact_domains = https://www.foo.bar/my-path,https://www.example.com