2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-22 02:02:14 +00:00
vinyldns/bin/remove-vinyl-containers.sh
Paul Cleary 25acdb13c7
Burn dynamo burn (#1025)
Fixes #971 

Changes in this pull request:
- Remove the module
- Update `build.sbt`
- Update docs
- Update docker things
- Update configs everywhere
2020-10-23 17:26:52 -04:00

31 lines
827 B
Bash
Executable File

#!/usr/bin/env bash
#
# The local vinyldns setup used for testing relies on the
# following docker images:
# mysql:5.7
# s12v/elasticmq:0.13.8
# vinyldns/bind9
# vinyldns/api
# vinyldns/portal
# rroemhild/test-openldap
# localstack/localstack
#
# This script with kill and remove containers associated
# with these names and/or tags
#
# Note: this will not remove the actual images from your
# machine, just the running containers
IDS=$(docker ps -a | grep -e 'mysql:5.7' -e 's12v/elasticmq:0.13.8' -e 'vinyldns' -e 'flaviovs/mock-smtp' -e 'localstack/localstack' -e 'rroemhild/test-openldap' | awk '{print $1}')
echo "killing..."
echo $(echo "$IDS" | xargs -I {} docker kill {})
echo
echo "removing..."
echo $(echo "$IDS" | xargs -I {} docker rm -v {})
echo
echo "pruning network..."
docker network prune -f