summaryrefslogtreecommitdiffstats
path: root/k8s-bootstrap-container/load-blueprints.sh
diff options
context:
space:
mode:
Diffstat (limited to 'k8s-bootstrap-container/load-blueprints.sh')
-rwxr-xr-xk8s-bootstrap-container/load-blueprints.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/k8s-bootstrap-container/load-blueprints.sh b/k8s-bootstrap-container/load-blueprints.sh
new file mode 100755
index 0000000..4b7270a
--- /dev/null
+++ b/k8s-bootstrap-container/load-blueprints.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+# Load DCAE blueprints/inputs onto container
+# $1 Blueprint repo base URL
+# Expect blueprints to be at <base URL>/blueprints
+
+set -x
+
+BLUEPRINTS=\
+"
+k8s-config_binding_service.yaml \
+k8s-deployment_handler.yaml \
+k8s-inventory.yaml \
+k8s-policy_handler.yaml
+"
+
+BPDEST=blueprints
+mkdir ${BPDEST}
+
+# Download blueprints
+for bp in ${BLUEPRINTS}
+do
+ curl -Ss $1/blueprints/${bp} > ${BPDEST}/$(basename ${bp})
+done
8 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133