.github
.mvn
config
docker
docs
platformQuickStarts
scripts
build-all.sh
build_docker.sh
clean-run-docker-compose.sh
deploy-webgoat.sh
run-docker-compose.sh
start.sh
webgoat-container
webgoat-images
webgoat-integration-tests
webgoat-lessons
webgoat-server
webwolf
.gitignore
.travis.yml
COPYRIGHT.txt
CREATE_RELEASE.MD
LICENSE.txt
README.MD
RELEASE_NOTES.md
buildspec.yml
docker-compose-local.yml
docker-compose-postgres.yml
docker-compose.yml
goat-with-reverseproxy.yaml
mvn-debug
mvnw
mvnw.cmd
pmd-ruleset.xml
pom.xml
project-suppression.xml
35 lines
641 B
Bash
Executable File
35 lines
641 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
cd ..
|
|
|
|
nc -zv 127.0.0.1 8080 2>/dev/null
|
|
SUCCESS=$?
|
|
nc -zv 127.0.0.1 9090 2>/dev/null
|
|
SUCCESS=${SUCCESS}$?
|
|
|
|
if [[ "${SUCCESS}" -eq 0 ]] ; then
|
|
echo "WebGoat and or WebWolf are still running, please stop them first otherwise unit tests might fail!"
|
|
exit 127
|
|
fi
|
|
|
|
|
|
sh mvnw clean install
|
|
if [[ "$?" -ne 0 ]] ; then
|
|
exit y$?
|
|
fi
|
|
|
|
cd -
|
|
sh build_docker.sh
|
|
if [[ "$?" -ne 0 ]] ; then
|
|
exit y$?
|
|
fi
|
|
|
|
while true; do
|
|
read -p "Do you want to run docker-compose?" yn
|
|
case ${yn} in
|
|
[Yy]* ) sh clean-run-docker-compose.sh; break;;
|
|
[Nn]* ) exit;;
|
|
* ) echo "Please answer yes or no.";;
|
|
esac
|
|
done
|