Gary Wu | 64c540b | 2018-05-09 15:04:32 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | if [ "$#" -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 |
| 7 | fi |
| 8 | |
| 9 | # expected parameters |
| 10 | MANIFEST=$(realpath $1) |
| 11 | DEMO_DIR=$(realpath $2) |
| 12 | |
| 13 | if [ -z "$WORKSPACE" ]; then |
| 14 | export WORKSPACE=`git rev-parse --show-toplevel` |
| 15 | fi |
| 16 | |
| 17 | cd $DEMO_DIR/heat/ONAP |
| 18 | |
| 19 | source <(./manifest-to-env.sh < $MANIFEST) |
| 20 | envsubst < onap_openstack_template.env > onap_openstack.env |