diff options
author | Helen Chen <helen.chen@huawei.com> | 2018-05-09 22:15:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-05-09 22:15:21 +0000 |
commit | 25411be2640bd9d76fd8c2ea1dcad15fbbc7aeb3 (patch) | |
tree | 636c962e3d8ee4ba01ff67bb0bc9b34804527a8b /version-manifest/src/main/scripts/update-heat-image-versions.sh | |
parent | 5da781e6b4ec9f4afe489bc92a61831c4536dcd6 (diff) | |
parent | 64c540bd168c463f1bb1ba08b7c1a803eee24fcb (diff) |
Merge "Add script to sync heat template from manifest"
Diffstat (limited to 'version-manifest/src/main/scripts/update-heat-image-versions.sh')
-rwxr-xr-x | version-manifest/src/main/scripts/update-heat-image-versions.sh | 20 |
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 |