From 008f7574a6eab94d81f83ccc9bf0d30028e79a04 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Mon, 16 Jun 2025 17:25:44 +0300 Subject: [PATCH] Features: 1) Remove `--ansi never` flag from all `docker compose` commands for better defaults; Fixes: 1) None; Extra: 1) Simplify CLI options for `docker compose` commands across Unix scripts. --- scripts/Unix/install.sh | 4 ++-- scripts/Unix/reboot.sh | 6 +++--- scripts/Unix/run.sh | 2 +- scripts/Unix/uninstall.sh | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/Unix/install.sh b/scripts/Unix/install.sh index d7d99820..8a7e8f38 100755 --- a/scripts/Unix/install.sh +++ b/scripts/Unix/install.sh @@ -57,7 +57,7 @@ fi printf "\e[32mSystem requirements met: CPU cores=%d, RAM=%.2fGB, FreeDisk=%dGB\e[0m\n" "$CPU_COUNT" "$MEM_GB" "$FREE_GB" printf "\e[36mPulling related images…\e[0m\n" -docker compose pull --ansi never +docker compose pull printf "\e[36mBuilding the project's images…\e[0m\n" -docker compose build --ansi never +docker compose build diff --git a/scripts/Unix/reboot.sh b/scripts/Unix/reboot.sh index bc3aeb8a..da9edaec 100755 --- a/scripts/Unix/reboot.sh +++ b/scripts/Unix/reboot.sh @@ -27,13 +27,13 @@ done < "$ART_PATH" printf "\n%b by WISELESS TEAM%b\n\n" "$GRAY" "$RESET" printf "%bStopping services…%b\n" "$CYAN" "$RESET" -docker compose down --ansi never +docker compose down printf "%bRebuilding services…%b\n" "$CYAN" "$RESET" -docker compose build --ansi never +docker compose build printf "%bStarting services…%b\n" "$CYAN" "$RESET" -docker compose up -d --ansi never +docker compose up -d printf "%bApplying database migrations…%b\n" "$CYAN" "$RESET" docker compose exec app poetry run python manage.py migrate --no-input diff --git a/scripts/Unix/run.sh b/scripts/Unix/run.sh index fe226830..93acf182 100755 --- a/scripts/Unix/run.sh +++ b/scripts/Unix/run.sh @@ -43,7 +43,7 @@ for image in $images; do done printf "\e[36mStarting services…\e[0m\n" -docker compose up --no-build --detach --wait --ansi never +docker compose up --no-build --detach --wait printf "\e[36mApplying migrations…\e[0m\n" docker compose exec app poetry run python manage.py migrate --no-input diff --git a/scripts/Unix/uninstall.sh b/scripts/Unix/uninstall.sh index 389c47e8..0ea05878 100644 --- a/scripts/Unix/uninstall.sh +++ b/scripts/Unix/uninstall.sh @@ -28,7 +28,7 @@ done < "$ART_PATH" printf "\n%b by WISELESS TEAM%b\n\n" "$GRAY" "$RESET" printf "%bKilling services…%b\n" "$CYAN" "$RESET" -docker compose down --ansi never +docker compose down printf "%bCleaning up Docker data…%b\n" "$CYAN" "$RESET" docker system prune -f