-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Running image timeout problem #682
Comments
https://node.testcontainers.org/configuration/#logs I assume you are not seeing an error when running any examples from the docs, so why do you think this is an issue with Testcontainers and not with the way you are starting your container? |
I don't assume anything. I am learning the tool. I made a ticket because it looks like incorrect behaviour to me I modified the way of running the sample code:
This fragment is particularly interesting:
When I don't raise the logging level, I don't see the information that the waiting strategy on this platform is not working:
It would be great if all error-related information appeared on the user's console, even when the error reporting level is not raised. |
I didn't say you assume, I said I assume 😄 Looks like I correctly assumed it's an issue with the way you're starting the container - because the image is distroless you'll need to configure an alternate wait strategy. You can find more info in the docs: https://node.testcontainers.org/features/wait-strategies/ I will raise a separate issue to improve error logging. Thanks! |
Thank you. The improved logs will be very useful :)
What does it mean ? |
Distroless images contain only your application and its runtime dependencies. They do not contain package managers, shells or any other programs you would expect to find in a standard Linux distribution. More info here: https://github.com/GoogleContainerTools/distroless#distroless-container-images This is an issue for you because the default wait strategy runs some shell commands to see if a port is bound, but no shell is available. You could therefore use alternate wait strategies, for example |
Thank you very much for the explanations. This HttpWaitStrategy strategy seems very interesting. |
Expected Behaviour
I expected the code to execute correctly:
Actual Behaviour
The program ends with an error
Testcontainer Logs
(I don't know what to type here)
Steps to Reproduce
Environment Information
The text was updated successfully, but these errors were encountered: