From 7d14763cf094fd4b6cc3269270502c589de138a6 Mon Sep 17 00:00:00 2001 From: Aleksandr Didenko Date: Mon, 4 Jul 2016 15:22:30 +0200 Subject: [PATCH] Add prebuilt images as option --- ccp/ccp-build.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/ccp/ccp-build.sh b/ccp/ccp-build.sh index 0678ed9e2..9fbddace6 100755 --- a/ccp/ccp-build.sh +++ b/ccp/ccp-build.sh @@ -2,6 +2,8 @@ set -e +PREBUILT="$1" + create_mcp_conf() { echo "Create mcp config" cat > /root/mcp.conf << EOF @@ -82,9 +84,11 @@ hack_images() { done } -# Switch to using prebuild images from ccp team -#create_mcp_conf -create_mirantis_mcp_conf create_registry -#create_resolvconf -#build_images + +if [ -n "$PREBUILT" ]; then + create_mirantis_mcp_conf +else + create_mcp_conf + build_images +fi