From 11e84ab54563ef1eedbabea37b7c3d7baa4a4f17 Mon Sep 17 00:00:00 2001 From: Cesar Flores Date: Sun, 8 Mar 2026 15:54:32 +0700 Subject: [PATCH] refactor: reorganized Justfile --- Justfile | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/Justfile b/Justfile index 84ca950..788c8f1 100644 --- a/Justfile +++ b/Justfile @@ -12,6 +12,21 @@ _default: @echo " VERSION: {{VERSION}}" @just --list +### Container Management ### + +# Start the database and wait until it's healthy +up db=VARIANT: + just build {{db}} + docker compose -f {{db}}/compose.yml up -d --wait + +# Stop the database container but preserve data volumes +down db=VARIANT: + docker compose -f {{db}}/compose.yml down + +# Stop the database container and remove data volumes +clean db=VARIANT: + docker compose -f {{db}}/compose.yml down -v + ### Build & Publish ### # Build image locally @@ -35,19 +50,6 @@ push db=VARIANT: ### Tests ### -# Start the database and wait until it's healthy -up db=VARIANT: - just build {{db}} - docker compose -f {{db}}/compose.yml up -d --wait - -# Stop the database container but preserve data volumes -down db=VARIANT: - docker compose -f {{db}}/compose.yml down - -# Stop the database container and remove data volumes -clean db=VARIANT: - docker compose -f {{db}}/compose.yml down -v - # Run tests against a database variant test db=VARIANT: @case "{{db}}" in \