1- .PHONY : help init fireform build up down logs logs-app logs-ollama shell pull-model test clean super-clean migrate migration
1+ .PHONY : help init fireform build up down logs logs-app logs-ollama shell pull-model test clean super-clean status ready-banner sync
22
33COMPOSE = docker compose -f docker/dev/compose.yml --env-file docker/.env.dev
44ENV_DEV = docker/.env.dev
2222 @echo " make build - Build Docker images"
2323 @echo " make up - Start all containers (detached)"
2424 @echo " make down - Stop all containers"
25+ @echo " make sync - Fast-install new requirements.txt deps into running app (no rebuild)"
26+ @echo " make status - Show compact container health summary"
2527 @echo " make logs - Stream all container logs"
2628 @echo " make logs-app - Stream app container logs"
2729 @echo " make logs-ollama - Stream Ollama container logs"
@@ -46,30 +48,38 @@ init:
4648 * ) echo " Run 'make fireform' when ready." ;; \
4749 esac
4850
49- fireform : build up
50- @printf " Waiting for Ollama to be ready..."
51- @until $(COMPOSE ) exec -T ollama ollama list > /dev/null 2>&1 ; do \
52- printf ' .' ; sleep 2; \
53- done
54- @echo " ready."
51+ fireform :
52+ @$(COMPOSE ) up -d --build
5553 @if $(COMPOSE ) exec -T ollama ollama list 2> /dev/null | grep -q " ^$( OLLAMA_MODEL) " ; then \
5654 echo " Model $( OLLAMA_MODEL) already pulled." ; \
5755 else \
5856 echo " Pulling $( OLLAMA_MODEL) ..." ; \
5957 $(COMPOSE ) exec -T ollama ollama pull $(OLLAMA_MODEL ) ; \
6058 fi
61- @echo " "
62- @echo " FireForm is ready!"
63- @echo " API: http://localhost:8000"
64- @echo " API Docs: http://localhost:8000/docs"
65- @echo " "
66- @echo " Run 'make logs' to view live logs, 'make down' to stop."
59+ @$(MAKE ) --no-print-directory ready-banner
6760
6861build :
6962 @$(COMPOSE ) build
7063
7164up :
7265 @$(COMPOSE ) up -d
66+ @$(MAKE ) --no-print-directory ready-banner
67+
68+ # Fast path for "I added a package": install the delta into the running container
69+ # (no image rebuild, no 1.6GB layer re-export). uv installs only what's missing in
70+ sync :
71+ @$(COMPOSE ) exec -T app sh -c " UV_TORCH_BACKEND=cpu uv pip install --system -r requirements.txt"
72+
73+ status :
74+ @$(COMPOSE ) ps --format ' table {{.Service}}\t{{.Status}}'
75+
76+ ready-banner :
77+ @echo " "
78+ @echo " FireForm is ready!"
79+ @echo " API: http://localhost:8000"
80+ @echo " API Docs: http://localhost:8000/docs"
81+ @echo " "
82+ @echo " Run 'make logs' to view live logs, 'make down' to stop."
7383
7484down :
7585 @$(COMPOSE ) down --remove-orphans
0 commit comments