Build kolla Victoria containers on fresh ubuntu 20.04 build VM
Jump to navigation
Jump to search
- VM with ubuntu 20.04 cloud image
## ubuntu victoria notes
apt-get update
apt-get install python3-dev libffi-dev gcc libssl-dev
# docker
apt install docker.io
systemctl enable docker
systemctl start docker
ip link set dev docker0 mtu 1450
(venv-kolla-victoria) root@kolla-build-victoria-ubuntu:~# cat /etc/docker/daemon.json
{
"mtu": 1450
}
# venv
apt install python3-virtualenv
# kolla
virtualenv /root/venv-kolla-victoria
source venv-kolla-victoria/bin/activate
pip install -U pip
pip install 'ansible<2.10'
git clone https://opendev.org/openstack/kolla
cd kolla/
git checkout stable/victoria
cd ..
pip install -r kolla/requirements.txt
pip install kolla
# note this just provides kolla-build
kolla-build -b ubuntu
# and off we go
- NOTE** this was right at the time of writing as victoria was the current release. When building containers it might be a good idea to specify a version e.g.
for ussuri (https://docs.openstack.org/releasenotes/kolla/ussuri.html):
pip install 'kolla=10.3.0'
for victoria (https://docs.openstack.org/releasenotes/kolla/victoria.html)
pip install 'kolla=11.0.1'
tag and push
- tag images
docker images | grep kolla | awk '{print "docker tag "$1":11.0.1 registry.define-technology.com:5000/"$1":victoria"}' > tag_victoria.sh chmod +x tag_victoria.sh bash tag_victoria.sh
- push images
docker login registry.define-technology.com:5000 docker images | grep define-tech | awk '{print "docker push "$1":victoria"}' > push_images.sh bash push_images.sh