Skip to content

bin/lib.sh: honor COMPOSE_FILE in start_app and start_app_service - #17

Merged
romkey merged 1 commit into
mainfrom
fix/start-app-compose-file
Oct 27, 2026
Merged

romkey merged 1 commit into
mainfrom
fix/start-app-compose-file

Conversation

@romkey

@romkey romkey commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

Fixes the issue Cursor Bugbot reported on #15 after it merged ("Install path drops GPU overrides").

start_app and start_app_service ran docker compose -f <app>/docker-compose.yml. An explicit -f makes Compose ignore COMPOSE_FILE from the app's .env. Since #15 moved the NVIDIA GPU reservation for ollama and vllm into docker-compose.nvidia.yml, install-ai-satellite.sh and install-chaos.sh would start ollama on the CPU even when .env selects the NVIDIA override. NFS (docker-compose.nfs.yml) and macvlan (docker-compose.macvlan.yml) overrides were already being dropped the same way.

Both functions now cd into the app directory and run docker compose without -f, matching start_experiment. The Compose project name stays the same (the app directory name), so already-running stacks are still recognised.

Also moves the start_app_service comment, which had drifted above start_experiment.

Testing

  • bash -n bin/lib.sh
  • With a temporary apps/ollama/.env selecting docker-compose.nvidia.yml: the old -f form resolves 0 NVIDIA reservations, the new form resolves 1. The project name is ollama in both cases.
  • Install scripts not run end to end.

🤖 Generated with Claude Code


Note

Medium Risk
Changes how all installer-driven Docker starts resolve compose files; wrong cwd/env could affect GPU, NFS, or network overrides, but it fixes dropped overrides from the old -f behavior.

Overview
start_app and start_app_service now run docker compose from each app’s directory without -f docker-compose.yml, so Compose picks up COMPOSE_FILE from the app’s .env (NVIDIA, NFS, macvlan, and similar overrides). Previously the hard-coded -f path ignored those settings—e.g. ollama/vllm could start without GPU reservations after overrides moved into separate compose files.

Behavior matches start_experiment: same project naming from the app dir, so “already running” checks should still work. The start_app_service doc comment is moved back above that function (it had sat above start_experiment).

Reviewed by Cursor Bugbot for commit 6dc366c. Bugbot is set up for automated code reviews on this repo. Configure here.

Both ran `docker compose -f <app>/docker-compose.yml`, and an explicit -f
makes Compose ignore COMPOSE_FILE from the app's .env. Since #15 moved the
GPU reservation for ollama and vllm into docker-compose.nvidia.yml, the
install scripts started them on the CPU; NFS and macvlan overrides were
already being dropped the same way. Run from the app directory without -f,
as start_experiment already does. The project name is unchanged (it was
already the app directory name).

Also move the start_app_service comment back above start_app_service.

Reported by Cursor Bugbot on #15.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@romkey
romkey merged commit 4572ce9 into main Oct 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant