From ff588ba5795cebc2586f213bfe20c206639a384d Mon Sep 17 00:00:00 2001 From: Marcel Date: Sat, 6 Jun 2026 14:07:45 +0200 Subject: [PATCH] fix(infra): escape \$\$SERVE_PID in compose command to prevent interpolation (#737) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Docker Compose interpolates $VAR in command strings — use $$ to pass a literal $ to the shell so SERVE_PID=$! and kill $SERVE_PID work correctly. Co-Authored-By: Claude Sonnet 4.6 --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index a87cb84e..7a509cfe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -162,7 +162,7 @@ services: security_opt: - no-new-privileges:true command: > - sh -c "ollama serve & SERVE_PID=$! && until curl -sf http://localhost:11434/api/tags; do sleep 1; done && ollama pull qwen2.5:7b-instruct-q4_K_M && kill $SERVE_PID" + sh -c "ollama serve & SERVE_PID=$$! && until curl -sf http://localhost:11434/api/tags; do sleep 1; done && ollama pull qwen2.5:7b-instruct-q4_K_M && kill $$SERVE_PID" # --- Ollama: LLM inference server --- # Serves the pre-pulled model for NL search inference.