Skip to content
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

Improve PortCheck logging for distroless images #954

Merged
merged 3 commits into from
Mar 24, 2025

Conversation

digital88
Copy link
Contributor

@digital88 digital88 commented Mar 23, 2025

See #683

The error The HostPortWaitStrategy will not work on a distroless image will be logged regardless of log.enabled()

Distroless containers also return error code 127 when exec non-existent command. Previous logic only tested for error code 126.

Copy link

netlify bot commented Mar 23, 2025

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 7a81375
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-node/deploys/67e131782f26820008b52528
😎 Deploy Preview https://deploy-preview-954--testcontainers-node.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@cristianrgreco cristianrgreco added enhancement New feature or request minor Backward compatible functionality labels Mar 23, 2025
@cristianrgreco cristianrgreco changed the title improved logging in InternalPortCheck Improve PortCheck logging for distroless images Mar 23, 2025
@cristianrgreco cristianrgreco merged commit 574c47b into testcontainers:main Mar 24, 2025
491 of 492 checks passed
@digital88
Copy link
Contributor Author

Oh, I just pushed a commit to this pr, but was late by a minute ) docker-no-shell fixture is also not needed, if we removed integration test.

@cristianrgreco
Copy link
Collaborator

cristianrgreco commented Mar 24, 2025

@digital88 Sorry about that, I want to merge all that I can for the next release, was hoping to get it out today.

I've raised #959 to remove those fixtures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor Backward compatible functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants