generated from Patagia/template-nix
chore(just): remove unnecessary dev-postgres-reset recipe
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
This commit is contained in:
parent
ffe95cb83c
commit
f4848871e8
1 changed files with 2 additions and 5 deletions
7
justfile
7
justfile
|
@ -57,7 +57,7 @@ check-nix:
|
|||
|
||||
# Run PostgreSQL for development and testing
|
||||
dev-postgres:
|
||||
mkdir -p "$XDG_RUNTIME_DIR/patagia-postgres"
|
||||
mkdir -p "${XDG_RUNTIME_DIR}/patagia-postgres"
|
||||
podman volume exists patagia-postgres || podman volume create patagia-postgres
|
||||
podman run \
|
||||
--detach \
|
||||
|
@ -67,12 +67,9 @@ dev-postgres:
|
|||
--env POSTGRES_USER=patagia \
|
||||
--env POSTGRES_PASSWORD=swordfish \
|
||||
--volume patagia-postgres:/var/lib/postgresql/data \
|
||||
--volume "$XDG_RUNTIME_DIR/patagia-postgres:/var/run/postgresql" \
|
||||
--volume "${XDG_RUNTIME_DIR}/patagia-postgres":/var/run/postgresql" \
|
||||
docker.io/postgres:17
|
||||
|
||||
# Reset PostgreSQL data and start
|
||||
dev-postgres-reset: dev-postgres-clean dev-postgres
|
||||
|
||||
# Clean up PostgreSQL data
|
||||
dev-postgres-clean:
|
||||
podman rm -f patagia-postgres || true
|
||||
|
|
Loading…
Reference in a new issue