mirror of
https://github.com/esauflores/databases.git
synced 2026-03-09 06:30:34 +00:00
refactor: reorganized Justfile
This commit is contained in:
28
Justfile
28
Justfile
@@ -12,6 +12,21 @@ _default:
|
|||||||
@echo " VERSION: {{VERSION}}"
|
@echo " VERSION: {{VERSION}}"
|
||||||
@just --list
|
@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 & Publish ###
|
||||||
|
|
||||||
# Build image locally
|
# Build image locally
|
||||||
@@ -35,19 +50,6 @@ push db=VARIANT:
|
|||||||
|
|
||||||
### Tests ###
|
### 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
|
# Run tests against a database variant
|
||||||
test db=VARIANT:
|
test db=VARIANT:
|
||||||
@case "{{db}}" in \
|
@case "{{db}}" in \
|
||||||
|
|||||||
Reference in New Issue
Block a user