Also clean up other helper scripts
Change-Id: Icae9cac8c6e9e3cef5e52e66bf79d6c30d23d235
Issue-ID: INT-495
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
#!/bin/bash
if [ "$#" -ne 2 ]; then
- echo This script adds docker images that exist in OOM helm charts into docker-manifest.csv
- echo "$0 <docker-manifest.csv> <oom directory>"
+ echo This script adds new docker images from OOM helm charts into docker-manifest.csv
+ echo "$0 <docker-manifest.csv> <oom repo directory>"
exit 1
fi
#!/bin/bash
+
+if [ "$#" -ne 1 ]; then
+ echo This script checks the input file to verify that it is sorted
+ echo "$0 <manifest.csv>"
+ exit 1
+fi
+
LC_ALL=C sort -c $1
retval=$?
if [ $retval -ne 0 ]; then
--- /dev/null
+#!/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
if [ "$#" -ne 2 ]; then
echo This script updates OOM helm charts to use versions in docker-manifest.csv
- echo "$0 <docker-manifest.csv> <oom directory>"
+ echo "$0 <docker-manifest.csv> <oom repo directory>"
exit 1
fi
export WORKSPACE=`git rev-parse --show-toplevel`
fi
-DIR=$(dirname $(readlink -f "$0"))
-TARGET_DIR=$DIR/target
-rm -rf $TARGET_DIR
-mkdir -p $TARGET_DIR
-cd $TARGET_DIR
-
cd $OOM_DIR/kubernetes
for line in $(tail -n +2 $MANIFEST); do