-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
GenericContainerBuilder false pull policy should not pull image #771
Conversation
✅ Deploy Preview for testcontainers-node ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Thanks for raising @schummar. Could you give an example where providing an undefined value caused issues? For now I'd accept the change to |
GenericContainerBuilder
false pull policy should not pull image
Hmm, I am pretty sure I saw some kind of error when the parameter was passed as undefined. But I cannot reproduce it now. Maybe I mixed something up. I have reverted that change now. |
It is interesting that What about if we use Thanks again for raising this PR! |
That's how the I changed it like you suggested. And I added a test case that fails without the fix. |
Thanks @schummar, the implementation LGTM. I think the test added is a duplicate of this one, which is unfortunately disabled for Podman Lines 59 to 73 in 824cd8d
|
That one test that the image is pulled when the pull policy says so. The new test tests that it doesn't pull when no pull policy is supplied. |
GenericContainerBuilder
false pull policy should not pull image
Without any other changes, upgrading from 10.9 to 10.10 break my build on my environment
Is suspect this PR cause my issue beucase it cause only GenericContainer to fail with I'm running testcontainer using kubedock (https://github.com/joyrex2001/kubedock) |
Hi @jonesbusy, the code change in this PR only takes effect after a working container runtime is established. If you want help please raise an issue and fill out the template, providing logs, etc. |
Hi, sure I will provide all the details like I did for #747 It's just that I didn't saw any other difference between 10.9 and 10.10 that might have cause the new issue I'm facing. Thanks |
Small issue I found by accident. Instead of
this.pullPolicy
the check should bethis.pullPolicy.shouldPull()
.The
cleanOpts
part makes sure that configs withundefined
value are not included in the request - it caused issues for me.