# Pastebin GpLwAXnB ### Use virtual env ``` sudo su pip install virtualenv virtualenv build_pike source build_pike/bin/activate ``` ### Clone kolla ``` git clone http://github.com/openstack/kolla cd kolla ``` ### checkout kolla pike ``` git checkout origin/stable/pike -b stable/pike ``` ### Install kolla and docker ``` pip install -r requirements.txt pip install -U docker==2.5.1 pip freeze | grep docker (Check it's 2.5.1) ``` ### Generate kolla-build.conf ``` pip install tox (places build-conf in /etc/kolla !) tox -e genconfig ``` ### Edit kolla-build.conf and add pointer to source Note if you are only interested in one service, say 'Horizon' then you need only add that section. The deployment tool willpick up the other images I have already pushed to dockerhub. ``` $ vi etc/kolla/kolla-build.conf [ceilometer-base] type = local location = /home/lusac/openstack/ceilometer reference = stable/pike [cinder-base] type = local location = /home/lusac/openstack/cinder reference = stable/pike [heat-base] type = local location = /home/lusac/openstack/heat reference = stable/pike [horizon] type = local location = /home/lusac/openstack/horizon reference = stable/pike [keystone-base] type = local location = /home/lusac/openstack/keystone reference = stable/pike [neutron-base] type = local location = /home/lusac/openstack/neutron reference = stable/pike [nova-base] type = local location = /home/lusac/openstack/nova reference = stable/pike [swift-base] type = local location = /home/lusac/openstack/swift reference = stable/pike ``` ### Build kolla images ``` export DOCKER_ID_USER="lusac" apt install docker.io docker login ./tools/build.py -n lusac --push -t source ``` Can also add a nohup as this is a long process: ``` nohup python -u ./tools/build.py -n lusac --push -t source tail -f nohup.out ``` Can specify just one container, like 'Horizon': ``` nohup python -u ./tools/build.py -n lusac --push -t source horizon ``` Additional useful options (especially --nocache): ``` --debug - adds lots of info --logs-dir