Kolla commands

Build just one container and send it to a private registry

kolla-build -b ubuntu kolla-toolbox --registry localhost:443 --push

Build one thing and publish it to a custom namespace

sudo kolla-build horizon -b ubuntu --push --registry m2-kolla-deploy:443 -n cory

Push a single ‘project’ out – Unconfirmed

kolla-ansible deploy keystone -i all-in-one

 

kolla-ansible prechecks -e 'ansible_become=true' -e 'ansible_become_method=sudo' -i all-in-one

 

Private registry with self signed certificates

root@m3-kolla-dockerhost1:/etc/docker/certs.d/m2-kolla-deploy:443# ll
total 16
drwxr-xr-x 2 root root 4096 Dec 14 16:02 ./
drwxr-xr-x 3 root root 4096 Dec 14 16:02 ../
-rw-r--r-- 1 root root 757 Dec 14 15:04 client.cert
-rw-r--r-- 1 root root 887 Dec 14 15:04 client.key

root@m3-kolla-dockerhost1:~# cat /etc/docker/daemon.json
{
"insecure-registries" : ["m2-kolla-deploy:443"]
}

Starting the registry container

sudo docker run -d --restart=always --name registry2 -v /opt/registry/:/certs -e REGISTRY_HTTP_ADDR=0.0.0.0:443 -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/registry.nexulon.crt -e REGISTRY_HTTP_TLS_KEY=/certs/registry.nexulon.key -p 443:443 registry:2

 

Build with overrides

sudo kolla-build kolla-toolbox -b ubuntu --push --registry m2-kolla-deploy:443 -n cory --template-override kolla-toolbox_override.j2

cory@m3-kolla-deploy:~$ cat kolla-toolbox_override.j2
{% extends parent_template %}

# Horizon
{% set kolla_toolbox_packages_append = ['python-openstackclient'] %}