chore(docker): add compose override for local server development#7828
chore(docker): add compose override for local server development#7828YoavLev wants to merge 1 commit intocadence-workflow:masterfrom
Conversation
|
Please add a reference to a cadence-workflow GitHub issue in the PR description. Use one of the accepted formats, for example: |
Add a docker-compose override file that stubs out the Cadence server container while keeping infrastructure dependencies (Cassandra, Kafka, Elasticsearch, Prometheus, Grafana) running in Docker. This enables running and debugging the server natively from the local repository against real dockerized dependencies. Signed-off-by: Yoav Levy <yoavlev2@gmail.com>
de873ad to
8d1e52a
Compare
|
Please link a cadence-workflow issue in the PR description. DetailsNo valid cadence-workflow issue link was found. Add one in any of the accepted formats:
|
Code Review 👍 Approved with suggestions 0 resolved / 1 findingsAdds a Docker Compose override file to streamline local server development setup. Consider testing 💡 Edge Case:
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
What changed?
Added
docker/docker-compose-local-server.yml— a docker-compose override file that stubs out the Cadence server container while keeping all infrastructure dependencies running in Docker.Why?
Working on and testing the Cadence server and system workflows locally is difficult because of the heavy infrastructure requirements (Elasticsearch, Kafka, Cassandra, Prometheus, Grafana). The existing docker-compose files bundle the server with these dependencies, forcing developers to either run everything in Docker (losing native debugging, fast rebuild cycles, and IDE integration) or manually set up each dependency.
This override file lets developers run only the infrastructure in Docker while running the server natively from the local repository. It:
busyboxstub127.0.0.1so the host-running server can connectcadence-webtohost.docker.internalto reach the locally running serverUsage:
How did you test it?
docker compose -f docker/docker-compose-es-v7.yml -f docker/docker-compose-local-server.yml upmake install-schemamake cadence-server && ./cadence-server startcadence-webatlocalhost:8088connects to the local serverdocker compose -f docker/docker-compose-es-v7.yml -f docker/docker-compose-local-server.yml configPotential risks
None. This is a new additive file with no changes to existing files. Requires Docker Compose v2.24+ for
!resetdirective support.Release notes
N/A — developer tooling only.
Documentation Changes
Could add a note to CONTRIBUTING.md about this local development option, but not strictly required as the file is self-documenting with usage instructions in the header comments.