mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
17 lines
328 B
Bash
Executable File
17 lines
328 B
Bash
Executable File
#!/bin/sh
|
|
|
|
inspect() {
|
|
# default to app, allow overriding by $1
|
|
SERVICE=${1:-app}
|
|
echo "Running docker-compose logs for service [$SERVICE]..."
|
|
docker compose logs $SERVICE -f --no-log-prefix
|
|
}
|
|
|
|
clean() {
|
|
containers=$(docker ps -a | grep 'quest-' | awk '{print $1}')
|
|
echo $containers
|
|
|
|
docker rm -f $containers
|
|
}
|
|
|
|
$@ |