Dmytro Dovbii 7cb39996f0 Restructure murano-apps repository
Change-Id: I9cdb1e4afcb9929c7b7a5437faaa25d284daefdb
Closes-Bug: #1441644
2015-04-14 09:42:21 +03:00

20 lines
520 B
Bash

#!/bin/bash
DEFINITION_DIR=/var/run/murano-kubernetes
cd $DEFINITION_DIR
rm /tmp/application.tgz
rm ./application.tgz.b64
echo "#!/bin/bash" > setup.sh
while read line
do
name=`echo $line | cut -d' ' -f1`
kind=`echo $line | cut -d' ' -f2`
file=`basename $(echo $line | cut -d' ' -f3)`
echo "echo 'Creating $kind $name'" >> setup.sh
echo "/opt/bin/kubectl create -f $file" >> setup.sh
done < ./elements.list
tar czf /tmp/application.tgz * --exclude=*.list
base64 /tmp/application.tgz > ./application.tgz.b64