openverse
openverse copied to clipboard
Add forceful option to `ov clean`
Problem
ov clean
uses docker stop
since https://github.com/WordPress/openverse/pull/4525
That's fine, but sometimes you don't care if the container exits gracefully, and just want to stop it.
Description
Add a --force
or --kill
option to ov clean
that switches to docker kill
instead of docker stop
. Something like:
if [ "$2" = "--kill" ]; then
docker kill ...
else
docker stop ...
fi