-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
2472: Add support for container_name in docker-compose file #2741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2472: Add support for container_name in docker-compose file #2741
Conversation
This commit updates the ParsedDockerComposeFile to pull out the container name for a service if included in the compose file. DockerComposeContainer was then updated with logic to use this specified name if present.
This commit adds tests for compose files with container_name specified. A compose file was added for this purpose.
aa38a96
to
4f7fab1
Compare
I'm not really sure about this failing CI. Any suggestions? I just rebased with master, and it wasnt failing before the rebase |
@reggiemcdonald I just triggered a re-run, there was some issue with downloading Gradle stuff |
@bsideup thanks! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this. |
Thanks @reggiemcdonald great work Is this still looking to be merged in? Currently the latest version (as of writing this) is |
Hi @reggiemcdonald, thank you! Do you have any plan on merging it @rnorth? |
@reggiemcdonald Can this get merged? |
Any update on landing this? |
Hello. I had the same issue recently, I would be grateful if this PR could be merged. Thanks for the hard work ! |
Is there any news about this PR? |
@bsideup or @reggiemcdonald , what's the status here? If you don't have time or energy here, I'm happy to take over the PR |
Would also love to see this merged, and can take it over if someone needs to. Status? |
Thanks for the PR @reggiemcdonald, but unfortunately we have to close it. Mainly, there are 2 reasons why we don't want to add support for
|
@kiview The reasons for closing this seem fairly arbitrary from my point of view. Responding to your numbered reasons in order:
For what it's worth, I just ran into this issue and would really like to see a solution because, in most other ways, Testcontainers is awesome. |
Closes: #2472
This PR adds support for
container_name
in the docker-compose file by pulling the container names out inParsedDockerComposeFile
and adding some additional logic inDockerComposeContainer
This is my first time contributing to the repo, so any feedback is welcomed.