blob: 19415bb12937a18f2aa5145de9c227a275a170ae [file] [log] [blame]
Gary Wu64c540b2018-05-09 15:04:32 -07001#!/bin/bash
2
3if [ "$#" -ne 2 ]; then
4 echo This script updates HEAT docker versions to use versions in docker-manifest.csv
5 echo "$0 <docker-manifest.csv> <demo repo directory>"
6 exit 1
7fi
8
9# expected parameters
10MANIFEST=$(realpath $1)
11DEMO_DIR=$(realpath $2)
12
13if [ -z "$WORKSPACE" ]; then
14 export WORKSPACE=`git rev-parse --show-toplevel`
15fi
16
17cd $DEMO_DIR/heat/ONAP
18
19source <(./manifest-to-env.sh < $MANIFEST)
20envsubst < onap_openstack_template.env > onap_openstack.env