mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
feat: collect docker scripts into one file
This commit is contained in:
1 parent
eeb30d1f7a
commit
cf5b761f3f
3 files changed
+17
-7
No files matched your search
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/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
|
||||
}
|
||||
|
||||
$@
|
||||
Reference in new issue
Block a user