Skip to content

Instantly share code, notes, and snippets.

@jbadiapa
Last active April 7, 2019 07:40
Show Gist options
  • Save jbadiapa/b6002ffcff5b2011e35d68aab19ede01 to your computer and use it in GitHub Desktop.
Save jbadiapa/b6002ffcff5b2011e35d68aab19ede01 to your computer and use it in GitHub Desktop.

How to create containers

Modified the containers

Editing the files on /usr/share/kolla/docker/XXXXX

Create the kolla file

This config file was taken from the gate.

cat > /etc/kolla/kolla-build.conf << EOF
[DEFAULT]
base=centos
type=binary
registry=192.168.24.1:8787
tag=eaf6d8d95d4f3badb071ee9e4cdf9a6652ada69b_156a4cd0
push=false
namespace=tripleomaster
debug=True
EOF

Apply patches that are needed on tripleo-common and python-tripleoclient

These patches makes buildah get the proper configuration from the kolla config file, to be specific the push parameter. Otherwise is trying to push the container to docker.

https://review.openstack.org/#/c/649251/
https://review.openstack.org/#/c/649250/

Configure the containers that we want to build

cat > /home/stack/overcloud_containers.yaml << EOF
container_images:
- imagename: docker.io/tripleomaster/centos-binary-mistral-api:current-tripleo
  image_source: kolla
- imagename: docker.io/tripleomaster/centos-binary-mistral-engine:current-tripleo
  image_source: kolla
- imagename: docker.io/tripleomaster/centos-binary-mistral-executor:current-tripleo
  image_source: kolla
- imagename: docker.io/tripleomaster/centos-binary-mistral-event-engine:current-tripleo
  image_source: kolla

Build the containers

sudo openstack overcloud container image build --config-file /home/stack/overcloud_containers.yaml --use-buildah --kolla-config /etc/kolla/kolla-build.conf

Check the containers

sudo podman images | grep eaf6d8d95d4f3badb071ee9e4cdf9a6652ada69b_156a4cd0
192.168.24.1:8787/tripleomaster/centos-binary-mistral-api                 eaf6d8d95d4f3badb071ee9e4cdf9a6652ada69b_156a4cd0   59649ba3d154   2 hours ago    964 MB
192.168.24.1:8787/tripleomaster/centos-binary-mistral-executor            eaf6d8d95d4f3badb071ee9e4cdf9a6652ada69b_156a4cd0   3b5bcf6bf3d2   2 hours ago    970 MB
192.168.24.1:8787/tripleomaster/centos-binary-mistral-engine              eaf6d8d95d4f3badb071ee9e4cdf9a6652ada69b_156a4cd0   e70797bb6e85   2 hours ago    930 MB
192.168.24.1:8787/tripleomaster/centos-binary-mistral-event-engine        eaf6d8d95d4f3badb071ee9e4cdf9a6652ada69b_156a4cd0   5f2a68ab537c   2 hours ago    930 MB
192.168.24.1:8787/tripleomaster/centos-binary-mistral-base                eaf6d8d95d4f3badb071ee9e4cdf9a6652ada69b_156a4cd0   c408ae0c0b88   2 hours ago    901 MB
192.168.24.1:8787/tripleomaster/centos-binary-openstack-base              eaf6d8d95d4f3badb071ee9e4cdf9a6652ada69b_156a4cd0   6ea8c20a13f3   2 hours ago    829 MB
192.168.24.1:8787/tripleomaster/centos-binary-base                        eaf6d8d95d4f3badb071ee9e4cdf9a6652ada69b_156a4cd0   afeed0e16bc7   2 hours ago    317 MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment