Skip to content

fix(compose): drop empty environment: key on runner service - #564

Merged
JimWallace merged 1 commit into
mainfrom
fix/compose-runner-empty-env
May 17, 2026
Merged

fix(compose): drop empty environment: key on runner service#564
JimWallace merged 1 commit into
mainfrom
fix/compose-runner-empty-env

Conversation

@JimWallace

Copy link
Copy Markdown
Owner

Summary

docker-compose.yml had a bare environment: key with no value on the runner service. Newer docker compose versions reject this with:

```
validating docker-compose.yml: services.runner.environment must be a mapping
```

This surfaced when the new ZAP baseline workflow (added in #525) tried to run `docker compose up` in CI — the first place in CI that exercises `docker compose up` against this file. The existing `docker-build.yml` only does `docker build`, which doesn't validate compose schema.

The runner doesn't need any env vars passed via compose — `RUNNER_WORKER_ID` and `RUNNER_MAX_JOBS` are referenced in the `command:` block and substituted from the shell at parse time. Removing the empty key is the simplest correct fix.

Test plan

  • YAML parses cleanly.
  • CI's existing docker-related checks pass.
  • Manually trigger ZAP workflow after merge to confirm `docker compose up` succeeds in CI.

🤖 Generated with Claude Code

The runner service had a bare `environment:` key with no value, which
older docker compose versions tolerated as a no-op but newer versions
reject with:

  validating docker-compose.yml: services.runner.environment must be a mapping

This surfaced when the new ZAP baseline workflow (added in #525) tried
to run `docker compose up` in CI. The runner doesn't actually need any
env vars passed via compose — RUNNER_WORKER_ID and RUNNER_MAX_JOBS are
referenced in the `command:` block and substituted from the shell at
parse time. Remove the empty key entirely.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@JimWallace
JimWallace merged commit a0588ec into main May 17, 2026
10 checks passed
@JimWallace
JimWallace deleted the fix/compose-runner-empty-env branch May 17, 2026 00:28
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