-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Using DockerComposeContainer with a local image does not work #674
Comments
I think you're right - we did this originally so that pull failures would be made visible more quickly, but it breaks when you have local-only images. We should just think about repeatability, though: the tests become dependent upon the local image being present and consistently built beforehand. I'm sure you understand this and have your build process set up to deal with it, but we prefer to at least gently nudge Testcontainers users towards doing things in as repeatable a way as possible. So: Maybe instead of removing the WDYT? |
Another approach, which follows your argument for having a local image is a pretty conscious decision, would be to add a I'm also happy with the warning, but am wondering, if this additional flag make things cleaner (or the API more confusing?). |
Warning sounds good to me 👍 |
Warning seems fair enough. IMO this should be transparent for the developer, therefore no need to reflect the possibility of using local images in the API. Better make it and implicit option. |
started using testcontainers and hit this bug right away, is there a possible ETA on this, thanks |
Another opinion: I have been working on building some docker images to use in testing of my project, and the extra network traffic from uploading the image and then downloading it again adds significantly to the turn around of my workflow. |
@Cuneytt |
Hi there,
I am just trying out TestContainers to launch a container with Atlassian Confluence inside which I know it works when using Dokcer for Mac the usual way.
My docker-compose.yml file looks like this:
please not the image which is a local one and it is not available in any docker hub.
My TestContainer is declared as per the following sentence:
and the error I am getting is:
IMO it should not be pulling the image remotely. As I said this work just running
docker-compose run --rm --service-ports -e CONFLUENCE_VERSION=6.8.2 confluence
Thanks for your help!
The text was updated successfully, but these errors were encountered: