aboutsummaryrefslogtreecommitdiffstats
path: root/version-manifest/src/main/scripts/update-heat-image-versions.sh
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-05-09 15:04:32 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-05-09 15:04:32 -0700
commit64c540bd168c463f1bb1ba08b7c1a803eee24fcb (patch)
tree9fe2896b3a436965566eb5e6028484fd6d538380 /version-manifest/src/main/scripts/update-heat-image-versions.sh
parentb8a8ccd85b022503db1aa0691ed1047269fb0757 (diff)
Add script to sync heat template from manifest
Also clean up other helper scripts Change-Id: Icae9cac8c6e9e3cef5e52e66bf79d6c30d23d235 Issue-ID: INT-495 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'version-manifest/src/main/scripts/update-heat-image-versions.sh')
-rwxr-xr-xversion-manifest/src/main/scripts/update-heat-image-versions.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/version-manifest/src/main/scripts/update-heat-image-versions.sh b/version-manifest/src/main/scripts/update-heat-image-versions.sh
new file mode 100755
index 000000000..19415bb12
--- /dev/null
+++ b/version-manifest/src/main/scripts/update-heat-image-versions.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+if [ "$#" -ne 2 ]; then
+ echo This script updates HEAT docker versions to use versions in docker-manifest.csv
+ echo "$0 <docker-manifest.csv> <demo repo directory>"
+ exit 1
+fi
+
+# expected parameters
+MANIFEST=$(realpath $1)
+DEMO_DIR=$(realpath $2)
+
+if [ -z "$WORKSPACE" ]; then
+ export WORKSPACE=`git rev-parse --show-toplevel`
+fi
+
+cd $DEMO_DIR/heat/ONAP
+
+source <(./manifest-to-env.sh < $MANIFEST)
+envsubst < onap_openstack_template.env > onap_openstack.env