Kolla commands

Build just one container and send it to a private registry

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

Build one thing and publish it to a custom namespace

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

Push a single 'project' out - Unconfirmed

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

Private registry with self signed certificates

 1root@m3-kolla-dockerhost1:/etc/docker/certs.d/m2-kolla-deploy:443# ll
 2total 16
 3drwxr-xr-x 2 root root 4096 Dec 14 16:02 ./
 4drwxr-xr-x 3 root root 4096 Dec 14 16:02 ../
 5-rw-r--r-- 1 root root 757 Dec 14 15:04 client.cert
 6-rw-r--r-- 1 root root 887 Dec 14 15:04 client.key
 7
 8root@m3-kolla-dockerhost1:~# cat /etc/docker/daemon.json 
 9{
10 "insecure-registries" : ["m2-kolla-deploy:443"]
11}

Starting the registry container

1sudo 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

1sudo kolla-build kolla-toolbox -b ubuntu --push --registry m2-kolla-deploy:443 -n cory --template-override kolla-toolbox_override.j2
1cory@m3-kolla-deploy:~$ cat kolla-toolbox_override.j2 
2{% extends parent_template %} # Horizon
3
4{% set kolla_toolbox_packages_append = ['python-openstackclient'] %}