-
-
Notifications
You must be signed in to change notification settings - Fork 508
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
Updating the go version for local Travis build and set wait strategy for compose services #261
Conversation
Pulling in latest changes
We can achieve the same functionality using the default `http` package.
… fails with reason
…ependency Remove gin dependency
As a consumer of the docker compose version, I'd consider any service in the compose file to be satisfied as a test time dependency. If any is not ready, I'd like it to fail. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @shashank-g172, great job here! I'm looking forward to seeing this into the library!
Please let's discuss about my comments in the PR.
One thing I'd do too is to revert the commits not related to the WaitFor strategy for compose, sending in a separate PR, so that we can review and merge separately, unless you consider them related.
Thanks, and well done again!
Indent line 118 in compose.go Co-authored-by: Manuel de la Peña <[email protected]>
@mdelapenya, each commit is all part of the same change. I needed to update the local go version in the contributing docs, I had to update the travis yaml file because of a dependency on the docker version, and all the other changes are generated except in compose_test.go and compose.go. I'd need to commit all the files for this to work. |
Yeah, I'd like to merge it sooner then later, as it brings a lot of value to the compose feature. I'd still suggest renaming the |
Thank you for your contribution @shashank-g172 and I am sorry if it didn't get merged on time and it now requires a rebase. @mdelapenya Overall this PR can be merged if rebased |
… fails with reason
Indent line 118 in compose.go Co-authored-by: Manuel de la Peña <[email protected]>
@gianarb @mdelapenya @mbroshi - The tests and the functionality works if I'm able to list the running containers so that I can apply the filter to apply the Wait Strategy for the one being specified. If any of you have a Go-Docker SDK agnostic way of listing the containers that I can't seem to find (which is why I had to pin down the version to 1.38.0), I can modify the file. https://travis-ci.org/github/testcontainers/testcontainers-go/builds/751999670 (Look at the failed builds without the docker version set) Considering that there isn't another way to list the containers easily - https://godoc.org/github.com/docker/docker/client#Client.ContainerList |
I am not sure if I understand the context of your question @shashank-g172 but I don't think we need to be Docker agnostic when it comes to the scope of Docker Compose, because Docker is a pretty strong compose requirement. |
Happy New Year @gianarb! I think I could phrase my question better:
Is this a result of TestContainers making an assumption about the version of docker? The checks for this PR seem to be passing through: https://github.com/testcontainers/testcontainers-go/pull/261/checks?check_run_id=1622559133 |
Thoughts? |
Thanks for your time here @shashank-g172. I already expressed my concerns about using the port for any wait strategy type, but I'm not against it: in deed I think this is a really great contribution. We can commit and iterate for improvements. LGTM 👍 |
Hey @shashank-g172, we removed support for travis. Would you mind rebasing/merging with upstream? I think this PR brings a lot of value to the docker-compose consumers, so we'd like to review and merge the soonest. Thanks for your patience. |
@mdelapenya do you have time to cherry-pick, rebase and help to make this work ready to get merged? Thanks a lot! |
Yes, I believe I'll have time this Friday morning. Let me do that then. 👍 |
I added a branch in my remote with exactly this PR plus the merge commit and a commit running |
Ok great, feel free to close this one and open a new one 👍 |
With the older version of go within the local docker container, I found this issue: #260
I'm updating the docs to fix it.