-
Notifications
You must be signed in to change notification settings - Fork 151
A way to work with docker-compose ? #59
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
Comments
No need to apologize :) At the moment, there is no docker-compose support and there are currently also no plans to add it. Regarding the availability of images: As soon as #58 lands, you should be able to very easily create containers for images that are not yet in |
Thanks for your answer! One standard use-case of So for instance, in order to test this library, one has to setup Kafka through docker-compose (obviously). |
Good point. Reading up on how We could also start with a similar approach as we did for Unfortunately, we don't have the resources and the need to tackle this at the moment. Feel free to give it a go :) |
I can give this a try although I'm a complete beginner. |
To talk to the docker host, we currently simply shell out to the The whole thing is abstracted over through the For docker-compose, we can do something similar although we don't need the a trait here. |
Perfect pointer! Thank you. If it's just calling the |
That one is a bit tricky. I am not too familiar with the healthchecks though. Will have to look it up :) Looking at what testcontainers-java does might not hurt in terms of possible features ;) |
Hello, I have a prototype that works with shell out and docker compose v2.x. The code is planned to be open-sourced later, but at the time it's still in a private crate. Are you interested in a PR? |
Feel free to open a PR! I cant promise that it will be merged in though, that depends a lot on the design and how it fits into this crate :) |
Just informing everyone interested, we are doing a major revision of So anyone who wants to help with this is welcome 🙂 |
Would love this as well. Not sure if I can try it out right now? |
Not at the moment unfortunately as I've had limited bandwidth for the last couple of months I'll continue working on this once have time |
any news? |
Unfortunately I haven't had enough bandwidth. So we are happy to welcome anyone who wants to take on this. P.S. if no one wants to take it on, I'll finish it when I have the chance (but can't commit any deadline). |
I'd like to give it a try. I'm probably underestimating the effort but for sure it will be a good learning experience. At least for me, I need to start various containers (e.g. couchdb, yugabyte) with some specific network configuration and using docker-compose from testcontainers seems the most straightforward. |
Hi @horacimacias 👋 Some preliminary work has been done and it even partially works, I will collect all the code, thoughts and design vision to provide more details a bit later (gimme couple of days) Also, do not hesitate to contact me directly via Testcontainers Slack |
@horacimacias sorry for the delay 🙏 The goal is to follow a similar feature set (impl can be totally different though) to Testcontainers for Java (to get familiar see their docs, containerized implementation, and general wrapper) or Go (however Go has the advantage of reusing Compose’s source code since it’s written in Go). As a first step, I wanted to implement both containerized and local setups via a unified trait. The containerized version simply runs docker-compose CLI commands, so users don’t need the CLI installed. I also think we can avoid the The initial PoC has been sitting unfinished for the past N months in my local branch with some outdated code. It already works in general, but we still need to:
It doesn’t seem like there’s much left to finish IMO. @horacimacias please, take a look and let me know if you're still interested and planning to complete the work. |
thanks! yes, still interested. Let me review all this and see where I can contribute. |
Hello, thanks for your work, and sorry to bother your issues with a question :\
Is there a way to use a
docker-compose.yml
file in order to setup our integration tests stack ?Similar to: https://www.testcontainers.org/modules/docker_compose/
Or is it limited to only images defined in the
images
folder (redis etc.).If not possible atm, is it a feature you'd like to have in the future ?
Thank you.
The text was updated successfully, but these errors were encountered: