Skip to content

Commit

Permalink
Merge branch 'main' into docker/db-port
Browse files Browse the repository at this point in the history
  • Loading branch information
merobi-hub authored Feb 20, 2024
2 parents 497f0ce + 32ae5cb commit 651b9d4
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions docker/down.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,31 @@ project_root=$(git rev-parse --show-toplevel)
cd "${project_root}/"

compose_files="-f docker-compose.yml"
args="--remove-orphans"
compose_args="--remove-orphans"

# Parse args
while [ $# -gt 0 ]; do
case $1 in
-h|'--help')
usage
exit 0
;;
esac
shift
done

# We can ignore the tag and port(s) when cleaning up running
# containers and volumes
TAG=any

API_PORT=${RANDOM} API_ADMIN_PORT=${RANDOM} WEB_PORT=${RANDOM} TAG=${RANDOM} docker-compose $compose_files down $args && \
docker volume rm marquez_data && \
API_PORT=${RANDOM}
API_ADMIN_PORT=${RANDOM}
WEB_PORT=${RANDOM}
TAG=${RANDOM}

docker compose $compose_files down $compose_args

docker volume rm marquez_data && \
docker volume rm marquez_db-backup && \
docker volume rm marquez_db-conf && \
docker volume rm marquez_db-init

0 comments on commit 651b9d4

Please sign in to comment.