Skip to content

Commit 97ce202

Browse files
Stopping all docker containers
1 parent 6f8f8ed commit 97ce202

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/start_with_zipkin_server.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,17 @@ function curl_health_endpoint() {
5151
return ${READY_FOR_TESTS}
5252
}
5353

54+
# Kills all docker related elements
55+
function kill_docker() {
56+
docker ps -a -q | xargs -n 1 -P 8 -I {} docker stop {} || echo "No running docker containers are left"
57+
}
58+
5459
# build apps
5560
./gradlew clean && ./gradlew build --parallel
5661

5762
if [[ "${WITH_RABBIT}" == "yes" ]] ; then
5863
# run rabbit
64+
kill_docker
5965
docker-compose kill
6066
docker-compose pull
6167
docker-compose up -d

0 commit comments

Comments
 (0)