Conversation
Introduces Docker Compose file support via CLI subprocess, enabling multi-service test environments from docker-compose.yml files. New modules: - DockerCompose: builder struct for compose configuration - Compose.Cli: subprocess wrapper for docker compose commands - Compose.ComposeService: lightweight service representation - Compose.ComposeEnvironment: started state with service accessors Integration with existing GenServer (start_compose/stop_compose) and ExUnit (compose/3 macro) following established patterns. Supports per-service wait strategies by bridging to existing WaitStrategy protocol. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Member
Author
|
@gossi take a look if you have time? i havent really got the time to test in a real project with relative dependency path, so im thinking about just getting these two PRs reviewed and merged, and then test in a 2.1.0-rc1 or something. using semver for what its worth ... |
Closed
Member
Author
|
Ah silly me. I can enhance one of the example projects to test docker compose ✅ |
Adds a test that verifies Docker Compose can start a PostgreSQL service and that it is reachable via Postgrex from the phoenix example project. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Multi-service compose file with PostgreSQL and Redis - Test compose/3 macro with shared: true (setup_all) - Test compose/3 macro with shared: false (per-test setup) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Member
Author
|
im squashing and merging this. And the other PR. And making a 2.1.0-rc1, to test with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docker compose up/down/ps), enabling multi-service test environments fromdocker-compose.ymlfilesDockerCompose(builder struct),Compose.Cli(subprocess wrapper),ComposeService(service data),ComposeEnvironment(started state with service/port accessors)start_compose/stop_compose) and ExUnit (compose/3macro) following established patternsWaitStrategyprotocol via Docker API container lookupTest plan
compose/3macro withshared: true: single environment shared across multiple tests (setup_all)compose/3macro withshared: false: fresh environment per test (setup)🤖 Generated with Claude Code