feat: docker dev postgres for expo-axum via db-ctrl devshell utility #3

Open
jingus wants to merge 1 commit from t3code/185ef044 into main
Owner

Replaces the nix-run postgres app with docker for the expo-axum dev
database, and upgrades the devshell:

  • db-ctrl devshell utility with up / down / wipe: manages a
    starter-db container from postgres:18-alpine, publishes on
    127.0.0.1:5432, waits on pg_isready, keeps data in the
    starter-db-data volume. Volume mounts at /var/lib/postgresql —
    the 18+ images hard-error on the old /data path.
  • devshell now exports
    DATABASE_URL=postgresql://starter:starter@127.0.0.1:5432/starter
    (overridable), sourced from the same nix let-block as db-ctrl so
    they cannot drift.
  • styled motd (db / backend / app / gate sections).
  • drops apps.db, the postgresql devshell package, and the .data/
    gitignore entry; READMEs + api.ts comment updated.

Verified: shellcheck; live up/down/wipe cycle incl. persistence and
real client connections; devshell smoke (motd + export + db-ctrl);
root nix fmt + nix flake check; template copy nix flake check +
nix run .#validate.

Replaces the nix-run postgres app with docker for the expo-axum dev database, and upgrades the devshell: - `db-ctrl` devshell utility with `up` / `down` / `wipe`: manages a `starter-db` container from `postgres:18-alpine`, publishes on 127.0.0.1:5432, waits on `pg_isready`, keeps data in the `starter-db-data` volume. Volume mounts at `/var/lib/postgresql` — the 18+ images hard-error on the old `/data` path. - devshell now exports `DATABASE_URL=postgresql://starter:starter@127.0.0.1:5432/starter` (overridable), sourced from the same nix let-block as db-ctrl so they cannot drift. - styled motd (db / backend / app / gate sections). - drops `apps.db`, the `postgresql` devshell package, and the `.data/` gitignore entry; READMEs + api.ts comment updated. Verified: shellcheck; live up/down/wipe cycle incl. persistence and real client connections; devshell smoke (motd + export + db-ctrl); root `nix fmt` + `nix flake check`; template copy `nix flake check` + `nix run .#validate`.
feat: docker dev postgres for expo-axum via db-ctrl devshell utility
Some checks failed
ci / flake-check (push) Successful in 40s
ci / flake-check (pull_request) Successful in 21s
ci / templates (push) Failing after 18m47s
ci / templates (pull_request) Failing after 1m8s
10c93ea139
Some checks failed
ci / flake-check (push) Successful in 40s
ci / flake-check (pull_request) Successful in 21s
ci / templates (push) Failing after 18m47s
ci / templates (pull_request) Failing after 1m8s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 't3code/185ef044:t3code/185ef044'
git switch 't3code/185ef044'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 't3code/185ef044'
git switch 't3code/185ef044'
git rebase 'main'
git switch 'main'
git merge --ff-only 't3code/185ef044'
git switch 't3code/185ef044'
git rebase 'main'
git switch 'main'
git merge --no-ff 't3code/185ef044'
git switch 'main'
git merge --squash 't3code/185ef044'
git switch 'main'
git merge --ff-only 't3code/185ef044'
git switch 'main'
git merge 't3code/185ef044'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jingus/starters!3
No description provided.