Switch to using prebuilt CCP images

This commit is contained in:
Aleksandr Didenko
2016-07-01 17:19:41 +02:00
parent ca8ef29ae4
commit 4d295d567b
4 changed files with 50 additions and 32 deletions

View File

@@ -19,6 +19,24 @@ skip_empty = True
EOF
}
create_mirantis_mcp_conf() {
echo "Create mcp config"
cat > /root/mcp.conf << EOF
[builder]
push = False
[registry]
address = "registry01-bud.ng.mirantis.net:5800"
insecure = True
[kubernetes]
environment = "openstack"
[repositories]
skip_empty = True
EOF
}
create_resolvconf() {
DNS_IP=`kubectl get service/kubedns --namespace=kube-system --template={{.spec.clusterIP}}`
cat > /root/resolv.conf << EOF
@@ -61,8 +79,9 @@ hack_images() {
done
}
create_mcp_conf
# Switch to using prebuild images from ccp team
#create_mcp_conf
create_mirantis_mcp_conf
create_registry
create_resolvconf
#hack_images
build_images
#create_resolvconf
#build_images