Add prebuilt images as option
This commit is contained in:
parent
4c300a57b5
commit
7d14763cf0
1 changed files with 9 additions and 5 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
PREBUILT="$1"
|
||||||
|
|
||||||
create_mcp_conf() {
|
create_mcp_conf() {
|
||||||
echo "Create mcp config"
|
echo "Create mcp config"
|
||||||
cat > /root/mcp.conf << EOF
|
cat > /root/mcp.conf << EOF
|
||||||
|
@ -82,9 +84,11 @@ hack_images() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# Switch to using prebuild images from ccp team
|
|
||||||
#create_mcp_conf
|
|
||||||
create_mirantis_mcp_conf
|
|
||||||
create_registry
|
create_registry
|
||||||
#create_resolvconf
|
|
||||||
#build_images
|
if [ -n "$PREBUILT" ]; then
|
||||||
|
create_mirantis_mcp_conf
|
||||||
|
else
|
||||||
|
create_mcp_conf
|
||||||
|
build_images
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue