diff options
author | Jack Lucas <jflucas@research.att.com> | 2018-03-27 00:04:46 -0400 |
---|---|---|
committer | Jack Lucas <jflucas@research.att.com> | 2018-03-27 00:05:26 -0400 |
commit | 230ae894c1b2f489e31d6a0d9f7db99cf6b65cbe (patch) | |
tree | 44dd8a41e278a8a3155b9f628515d550636b2248 /k8s-bootstrap-container/load-blueprints.sh | |
parent | 649d242623da77f02277c778a55cc51430a809ca (diff) |
Add k8s bootstrap container
Change-Id: Ib21bd80a1e43d1005974527cecf93e99462e94fa
Issue-ID: DCAEGEN2-421
Signed-off-by: Jack Lucas <jflucas@research.att.com>
Diffstat (limited to 'k8s-bootstrap-container/load-blueprints.sh')
-rwxr-xr-x | k8s-bootstrap-container/load-blueprints.sh | 23 |
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 |