Rework Makefile: make init vs make up, thin wrappers, drop frontend targets
Context
The current Makefile is confusing about when models get downloaded:
make fireform runs build up pull-model → downloads the extraction model (qwen).
make up separately triggers whisper model downloads.
So "which command downloads what" is unclear, and model setup is tangled into the run flow. Also, the frontend has moved to its own repo (fireform-desktop), so all frontend Make targets are now dead weight.
Goal
Split setup from run, and make targets thin wrappers over scripts/.
make init — one-time setup: build images, pull all required models (extraction + whisper), init DB. Everything heavy/one-time happens here.
make up — just run the containers. If init hasn't been run (required model/DB missing), fail with a clear error message telling the user to run make init first. (How we detect this marker file, model check, etc. we'll decide in the PR.)
- Make targets delegate to
scripts/ (e.g. make pull-model → ./scripts/pull-model.sh) instead of inlining docker exec commands.
Tasks
Depends on
Rework Makefile:
make initvsmake up, thin wrappers, drop frontend targetsContext
The current Makefile is confusing about when models get downloaded:
make fireformrunsbuild up pull-model→ downloads the extraction model (qwen).make upseparately triggers whisper model downloads.So "which command downloads what" is unclear, and model setup is tangled into the run flow. Also, the frontend has moved to its own repo (
fireform-desktop), so all frontend Make targets are now dead weight.Goal
Split setup from run, and make targets thin wrappers over
scripts/.make init— one-time setup: build images, pull all required models (extraction + whisper), init DB. Everything heavy/one-time happens here.make up— just run the containers. Ifinithasn't been run (required model/DB missing), fail with a clear error message telling the user to runmake initfirst. (How we detect this marker file, model check, etc. we'll decide in the PR.)scripts/(e.g.make pull-model→./scripts/pull-model.sh) instead of inlining docker exec commands.Tasks
make initthat performs full first-time setup (build + all model pulls + DB init).make upto only start containers; add a precondition check that errors clearly ifinitwas never run.scripts/.logs-frontend, frontend build/up bits, frontend mentions inhelp) frontend lives infireform-desktopnow.helpoutput to reflect the new init/up split.Depends on
scripts/migration issue. Migrate all scripts under scripts/ folder #517