sudo yum install epel-release -y
sudo yum install python-devel git python3 python-pip gcc -y
sudo apt-get install git python3 python3-pip python-pip gcc -y
brew install git python3 -y
$ git clone https://github.com/openstack/kolla.git
$ cd kolla/
$ git checkout stable/victoria
# In kolla directory path
$ cd ..
$ pip3 install kolla/
...
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-GB1G0n/GitPython/
...
pip install --upgrade pip
...
ERROR: Cannot uninstall 'requests'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
...
$ rpm -qa | grep requests
$ yum remove python-requests-2.6.0-1.el7_1.noarch -y
$ pip3 install tox
$ cd kolla/
$ tox -e genconfig
...
genconfig: commands succeeded
congratulations :)
...
configure: error: no acceptable C compiler found in $PATH
...
_posixsubprocess.c:16:20: fatal error: Python.h: No such file or directory
...
$ sudo yum install python-devel gcc -y
...
File "/usr/lib/python2.7/site-packages/more_itertools/more.py", line 340
def _collate(*iterables, key=lambda a: a, reverse=False):
^
SyntaxError: invalid syntax
...
pip install more-itertools==5.0.0
# In kolla directory path
$ cd ..
$ git clone https://github.com/openstack/nova.git
$ cd nova/
$ git checkout stable/victoria
$ pwd
/root/nova
# In nova directory path
$ cd ..
$ cd kolla
$ vi etc/kolla/kolla-build.conf # File is in kolla repo path
...
[nova-base]
type = local
# Below value should be your local computer nova directory path
location = /root/nova
...
...
# The Docker tag (string value)
tag = victoria
...
$ mkdir -p /etc/kolla/ && cp etc/kolla/kolla-build.conf /etc/kolla/kolla-build.conf
# In kolla directory path
$ python tools/build.py -t source nova
# OR
$ kolla-build -t source nova
# In kolla directory path
$ python tools/build.py
# OR
$ kolla-build
# In kolla directory path
$ python tools/build.py keystone
# OR
$ kolla-build keystone
# In kolla directory path
$ python tools/build.py -b centos -t source nova
# OR
$ kolla-build -b centos -t source nova
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
kolla/centos-source-nova-compute victoria 5145ea1a6ba7 About an hour ago 2.48GB
kolla/centos-source-nova-novncproxy victoria d8338f6be7fa About an hour ago 1.66GB
kolla/centos-source-nova-ssh victoria bbd9d11448b4 About an hour ago 1.61GB
kolla/centos-source-nova-compute-ironic victoria 18d58cc4b892 About an hour ago 1.61GB
kolla/centos-source-nova-conductor victoria 395fa15a5da4 2 hours ago 1.58GB
kolla/centos-source-nova-api victoria 20cc9cbe4234 2 hours ago 1.58GB
kolla/centos-source-nova-scheduler victoria b8b967a7dc3d 2 hours ago 1.58GB
kolla/centos-source-nova-mksproxy victoria 90e969a20b73 2 hours ago 1.58GB
kolla/centos-source-nova-serialproxy victoria b8a4f46b847d 2 hours ago 1.58GB
kolla/centos-source-nova-base victoria 4fdef07ed1c6 2 hours ago 1.58GB
kolla/centos-source-novajoin-server victoria 9359d838c42b 2 hours ago 956MB
kolla/centos-source-novajoin-notifier victoria 7704d7b68a0a 2 hours ago 956MB
kolla/centos-source-novajoin-base victoria 75aca84b6a12 2 hours ago 956MB
kolla/centos-source-openstack-base victoria 215a22192097 2 hours ago 809MB
kolla/centos-source-nova-libvirt victoria 1672530e7c27 2 hours ago 1.28GB
kolla/centos-source-base victoria 36674f426fd1 2 hours ago 314MB
centos 8 0d120b6ccaa8 3 months ago 215MB