Fix buildscripts to wait for Docker and build snapshots

This commit is contained in:
Nanne Baars 2018-08-08 18:23:27 +02:00
parent 1252e3dc21
commit bca8b3c650
3 changed files with 11 additions and 9 deletions

View File

@ -13,15 +13,17 @@ if [[ "${SUCCESS}" -eq 00 ]] ; then
fi
#mvn clean install
#if [[ "$?" -ne 0 ]] ; then
# exit y$?
#fi
mvn clean install
if [[ "$?" -ne 0 ]] ; then
exit y$?
fi
cd -
sh build_docker.sh
if [[ "$?" -ne 0 ]] ; then
exit y$?
fi
echo "Do you want to run docker-compose?"
while true; do
read -p "Do you want to run docker-compose?" yn
case ${yn} in
@ -29,4 +31,4 @@ while true; do
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done
done

View File

@ -3,8 +3,8 @@
WEBGOAT_HOME=$(pwd)/../
cd ${WEBGOAT_HOME}/webgoat-server
docker build -t webgoat/webgoat-8.0 .
docker build -t webgoat/webgoat-v8.0.0.snapshot .
cd ${WEBGOAT_HOME}/webwolf
docker build -t webgoat/webwolf .
docker build -t webgoat/webwolf-v8.0.0.snapshot .

View File

@ -2,4 +2,4 @@
cd ..
docker-compose rm -f
docker-compose up
docker-compose -f docker-compose-local.yml up