feat(infra): add partha:up instant restart and partha:down (#223 follow-up) - #224
Merged
parthrohit22 merged 1 commit intoJul 27, 2026
Merged
Conversation
…igin#223 follow-up) Keep npm run partha self-building for fresh clones (no pre-built image needed), add partha:up (--no-build) for cached instant restarts and partha:down to stop from another terminal. Documents both in README.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Make the
npm run parthaone-command launcher convenient for both first-time usersand repeated local restarts. The default
npm run parthakeeps building images fromsource (so any fresh clone works with no pre-built image — the "all users" property).
Add
npm run partha:upfor instant restarts that skip the build step and reuse thealready-built images, and
npm run partha:downto stop the stack from another terminal.This is dev-tooling/onboarding only. It introduces no new product surface, changes no
API contract, and preserves the existing security posture (Postgres/Redis host-isolated,
named volumes persist).
Linked issue
Part of #223 (full-stack compose launcher). Convenience follow-up requested during
verification of the re-run build behavior.
What changed
scripts/partha.mjs): accept a--no-buildflag; when set, rundocker compose up --waitinstead ofdocker compose up --build --wait. All otherbehavior (Docker/buildx preflight, readiness waits, Ctrl+C →
compose down) unchanged.package.json: addpartha:up(node scripts/partha.mjs --no-build) andpartha:down(docker compose down).README.md: documentpartha:up/partha:downand clarify that images arereused from cache on repeat runs.
Acceptance criteria completed
npm run partha(with--build) still boots all four services and printsPARTHA is ready at http://localhost:5173;curl localhost:8000/ready→ 200 andcurl localhost:5173/→ 200.npm run partha:upstarts the existing images with zero rebuild (Buildinglines= 0) and reaches ready; API + frontend return 200.
npm run partha:downstops the stack cleanly.docker compose -f docker-compose.yml configremains valid.Testing performed
On macOS with Docker (colima) running:
npm run partha: booted all 4 services, ready line printed,/ready200, frontend 200.npm run partha:up: booted with 0Buildinglines (image cache reused), ready line,/ready200, frontend 200.npm run partha:down: containers stopped, no orphans; named volumes preserved.Screenshots
Not applicable (infra/launcher script change; verified via curl + compose status).
Security and data considerations
None new. Postgres/Redis remain host-isolated (no host port bindings). No secrets added
to code or Compose. Named volumes (
partha_postgres_data,partha_partha_storage)preserve data across restarts as before.
Dependencies and blocked work
None. Depends on #223 (merged) for the base launcher.
Scope changes or remaining work
None. This is a convenience enhancement only.
Contributor checklist
feat/222-launcher-no-build)