一、环境准备
准备一台centos7系统虚拟机
二、安装kolla
安装epel
yum install epel-release -y
配置ntp
yum install ntp -y systemctl enable ntpd systemctl start ntpd
配置docker源
cat /etc/yum.repos.d/docker.repo [dockerrepo] name=Docker Repository #baseurl= baseurl= enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg
安装docker
yum install docker-engine -y
安装git
yum install git -y
安装pip
yum install pip -y pip install pip --upgrade
安装kollla
git clone https://github.com/openstack/kolla.git cd kolla git checkout stable/newton pip install -r requirements.txt python setup.py install cp -r etc/kolla /etc/
安装ansible
yum remove ansiable* -y && yum autoremove -y pip install ansible
三、安装docker registry
修改docker 配置文件,可以使用local registry
cat /usr/lib/systemd/system/docker.service ... ExecStart=/usr/bin/dockerd --insecure-registry registry_ip_address:registry_ip_port ...
四、构建image
kolla-build --base centos --base-tag 7 \
--type source \
--registry registry_ip_address:registry_ip_port \
--push 2>&1 | tee -a kolla_build.logs
本文出自 “武陵荒草” 博客,请务必保留此出处http://penguintux.blog.51cto.com/3021117/1864180
原文地址:http://penguintux.blog.51cto.com/3021117/1864180