TCIB stands for The Container Image Build. It is a repository to build OpenStack services container images.
- Generate repos using repo-setup tool
$ git clone https://github.com/openstack-k8s-operators/repo-setup
$ cd repo-setup
$ python setup.py install --user
$ # Make a directory to store the generated repos
$ mkdir /tmp/repos
$ # Generate repos using repo-setup tool
$ repo-setup current-podified -b zed -o /tmp/repos
- Install ansible-core and Buildah tool
$ sudo dnf -y install ansible-core buildah
- Define subset of images to build
By default all images will be built as specified
in container-images/containers.yaml
This can be limited to a subset of images
with a custom containers file:
$ cat containers.yaml
container_images:
- imagename: quay.io/podified-master-centos9/openstack-base:current-podified
- imagename: quay.io/podified-master-centos9/openstack-keystone:current-podified
When tcib is installed from pip or a package, container templates are installed
in /usr/share/tcib/container-images/tcib
which will render to buildah scripts and Dockerfile files when images are built with:
$ sudo openstack tcib container image build --config-file containers.yaml --repo-dir /tmp/repos/
When doing local development, images can be built from modifications in the local directory:
# setup for local development
$ git clone https://github.com/openstack-k8s-operators/tcib
$ cd tcib
$ python -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt -e ./
$ source tcib-dev-env.rc
# make local development changes, then build images
$ openstack tcib container image build --config-file containers.yaml --repo-dir /tmp/repos/ --tcib-extras tcib_package=
The --tcib-extras tcib_package=
is required so that non-template files are sourced from the local container-images/kolla
instead of from the python-tcib-containers
package in the container build.
- Free software: Apache license