feat: collect docker scripts into one file

This commit is contained in:
wancat committed 2023-08-22 15:49:21 +08:00
1 parent eeb30d1f7a
commit cf5b761f3f
3 files changed
+17 -7

No files matched your search

-5
View File
@@ -1,5 +0,0 @@
#!/bin/sh
containers=$(docker ps -a | grep 'quest-' | awk '{print $1}')
echo $containers
docker rm -f $containers
+17
View File
@@ -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
}
$@
-2
View File
@@ -1,2 +0,0 @@
#!/bin/sh
docker compose -f docker-compose.prod.yml logs backend -f --no-log-prefix