Fix make and podman compose to use correct paths when run from repo root

make build was looking for Makefile in cwd (repo root) instead of infra/.
Use -C "$SCRIPT_DIR" so it always finds infra/Makefile regardless of where
the script is invoked from.

Add -f flag to podman compose up so it finds infra/docker-compose.yml
from any working directory.

https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH
This commit is contained in:
Claude 2026-03-22 07:55:58 +00:00
parent ea5b6e5594
commit 0932308ed6
No known key found for this signature in database

View file

@ -100,7 +100,7 @@ if [ ! -S "$PODMAN_SOCK" ]; then
fi
# ── Build images ───────────────────────────────────────────────────────────────
make build
make -C "$SCRIPT_DIR" build
# ── Start services (detached) ──────────────────────────────────────────────────
podman compose --env-file "$REPO_ROOT/.env" up -d
podman compose --env-file "$REPO_ROOT/.env" -f "$SCRIPT_DIR/docker-compose.yml" up -d