{"body":"### Use virtual env\n\n```\nsudo su\npip install virtualenv\nvirtualenv build_pike\nsource build_pike/bin/activate\n```\n\n### Clone kolla\n\n```\ngit clone http://github.com/openstack/kolla\ncd kolla\n```\n\n### checkout kolla pike\n\n```\ngit checkout origin/stable/pike -b stable/pike\n```\n\n### Install kolla and docker\n\n```\npip install -r requirements.txt\npip install -U docker==2.5.1\npip freeze | grep docker\n(Check it's 2.5.1)\n```\n\n### Generate kolla-build.conf\n\n```\npip install tox\n(places build-conf in /etc/kolla !)\ntox -e genconfig\n```\n\n### Edit kolla-build.conf and add pointer to source\n\nNote if you are only interested in one service, say 'Horizon' then you need only\nadd that section. The deployment tool willpick up the other images I have\nalready pushed to dockerhub.\n\n```\n$ vi etc/kolla/kolla-build.conf\n[ceilometer-base]\ntype = local\nlocation = /home/lusac/openstack/ceilometer\nreference = stable/pike\n\n[cinder-base]\ntype = local\nlocation = /home/lusac/openstack/cinder\nreference = stable/pike\n\n[heat-base]\ntype = local\nlocation = /home/lusac/openstack/heat\nreference = stable/pike\n\n[horizon]\ntype = local\nlocation = /home/lusac/openstack/horizon\nreference = stable/pike\n\n[keystone-base]\ntype = local\nlocation = /home/lusac/openstack/keystone\nreference = stable/pike\n\n[neutron-base]\ntype = local\nlocation = /home/lusac/openstack/neutron\nreference = stable/pike\n\n[nova-base]\ntype = local\nlocation = /home/lusac/openstack/nova\nreference = stable/pike\n\n[swift-base]\ntype = local\nlocation = /home/lusac/openstack/swift\nreference = stable/pike\n```\n\n### Build kolla images\n\n```\nexport DOCKER_ID_USER=\"lusac\"\napt install docker.io\ndocker login\n./tools/build.py -n lusac --push -t source\n```\n\nCan also add a nohup as this is a long process:\n\n```\nnohup python -u ./tools/build.py -n lusac --push -t source\ntail -f nohup.out\n```\n\nCan specify just one container, like 'Horizon':\n\n```\nnohup python -u ./tools/build.py -n lusac --push -t source horizon\n```\n\nAdditional useful options (especially --nocache):\n\n```\n--debug - adds lots of info\n--logs-dir <dir> - stores the info\n--nocache - clean build of everything\n--pull - pull images from dockerhub first\n```\n","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/GpLwAXnB","modified":1512743566,"id":"GpLwAXnB","size":2145,"lines":118,"own_paste":false,"theme":"","date":1512743566}