Skip to content

Improve PortCheck logging for distroless images#954

Merged
cristianrgreco merged 3 commits intotestcontainers:mainfrom
digital88:pr-#683
Mar 24, 2025
Merged

Improve PortCheck logging for distroless images#954
cristianrgreco merged 3 commits intotestcontainers:mainfrom
digital88:pr-#683

Conversation

@digital88
Copy link
Copy Markdown
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.

@netlify
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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.

vaernion pushed a commit to Arbeidstilsynet/brevgen2 that referenced this pull request Dec 3, 2025
….23.0

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [testcontainers](https://github.com/testcontainers/testcontainers-node) | [`10.21.0` -> `10.23.0`](https://renovatebot.com/diffs/npm/testcontainers/10.21.0/10.23.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/testcontainers/10.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/testcontainers/10.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/testcontainers/10.21.0/10.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/testcontainers/10.21.0/10.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>testcontainers/testcontainers-node (testcontainers)</summary>

### [`v10.23.0`](https://github.com/testcontainers/testcontainers-node/releases/tag/v10.23.0)

[Compare Source](testcontainers/testcontainers-node@v10.22.0...v10.23.0)

#### Changes

#### 🚀 Features

-   Add snapshot support to postgres module [@&#8203;Nikola-Milovic](https://github.com/Nikola-Milovic) ([#&#8203;961](testcontainers/testcontainers-node#961))

### [`v10.22.0`](https://github.com/testcontainers/testcontainers-node/releases/tag/v10.22.0)

[Compare Source](testcontainers/testcontainers-node@v10.21.0...v10.22.0)

#### Changes

#### 🚀 Features

-   Improve PortCheck logging for distroless images [@&#8203;digital88](https://github.com/digital88) ([#&#8203;954](testcontainers/testcontainers-node#954))
-   Add buildkit support [@&#8203;cristianrgreco](https://github.com/cristianrgreco) ([#&#8203;955](testcontainers/testcontainers-node#955))
-   Add `TESTCONTAINERS_RYUK_VERBOSE` setting [@&#8203;digital88](https://github.com/digital88) ([#&#8203;941](testcontainers/testcontainers-node#941))
-   Update ChromaDB + improve docs and tests [@&#8203;cristianrgreco](https://github.com/cristianrgreco) ([#&#8203;940](testcontainers/testcontainers-node#940))
-   Implement `withAutoRemove` [#&#8203;905](testcontainers/testcontainers-node#905) [@&#8203;digital88](https://github.com/digital88) ([#&#8203;939](testcontainers/testcontainers-node#939))

#### 🐛 Bug Fixes

-   Couchbase: add missing exports and fix sonar suggestions [@&#8203;digital88](https://github.com/digital88) ([#&#8203;942](testcontainers/testcontainers-node#942))

#### 🧹 Maintenance

-   Docs: clarified timeout unit in different places [@&#8203;digital88](https://github.com/digital88) ([#&#8203;958](https://github.com/test...
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