Added option for container to automatically remove itself after it finishes.

This commit is contained in:
Renan DelValle 2019-05-01 09:18:45 -07:00
parent a162727c8c
commit 75f44dedcc
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9

View file

@ -8,6 +8,6 @@ if [ $? -ne 0 ]; then
fi
# Since we run our docker compose setup in bridge mode to be able to run on MacOS, we have to launch a Docker container within the bridge network in order to avoid any routing issues.
docker run -t -v $(pwd):/go/src/github.com/paypal/gorealis --network gorealis_aurora_cluster golang:1.10-stretch go test -v github.com/paypal/gorealis $@
docker run --rm -t -v $(pwd):/go/src/github.com/paypal/gorealis --network gorealis_aurora_cluster golang:1.10-stretch go test -v github.com/paypal/gorealis $@
docker-compose down