mirror of
https://github.com/NationalSecurityAgency/datawave.git
synced 2026-11-10 17:31:14 -10:00
…s from NationalSecurityAgency/datawave-stack-docker-images --------- Co-authored-by: Moriarty <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]>
11 lines
265 B
Bash
Executable File
11 lines
265 B
Bash
Executable File
#!/usr/bin/env bash
|
|
if [[ "${@/keepdata}" == "$@" ]]; then
|
|
docker compose down --volumes --remove-orphans
|
|
else
|
|
docker compose down --remove-orphans
|
|
fi
|
|
docker image prune -f
|
|
if [[ "${@/keeplog}" == "$@" ]]; then
|
|
sudo find logs -type f -name '*log*' -delete
|
|
fi
|