Skip to content

Conversation

@mominul
Copy link
Contributor

@mominul mominul commented Sep 14, 2025

Alternative approach to #800 #837

I think this approach gives more flexibility API-wise. I am happy to add tests if the maintainers think this is a more suitable approach.

Fixes #500, #718

Thanks in advance!

@netlify
Copy link

netlify bot commented Sep 14, 2025

Deploy Preview for testcontainers-rust ready!

Name Link
🔨 Latest commit e0ad768
🔍 Latest deploy log https://app.netlify.com/projects/testcontainers-rust/deploys/68ffc8e0164bda000894de70
😎 Deploy Preview https://deploy-preview-838--testcontainers-rust.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 project configuration.

@DDtKey
Copy link
Contributor

DDtKey commented Sep 14, 2025

Hi @mominul 👋

Thanks for the contribution!

I think we may want to have both, but platform detection relying on default Docker's methods (DOCKER_DEFAULT_PLATFORM) looks like useful and needed feature.
As it's typical use-case for users and run the same code on different platforms (e.g developer with Apple Silicon, CI on linux + amd64 and etc)

Exposing a way to configure platform from the code looks reasonable as well, but it's more like addition, not a replacement of #800 & #837

What do you think about co-existence of both approaches? (with the following priory: explicitly configured in the code > auto-detection > fallback)

@mominul
Copy link
Contributor Author

mominul commented Sep 20, 2025

@DDtKey That would be great! I have rebased my changes upon #800 & #837 Can you have a look if you are okay with it? The CI failures are unrelated to these changes I think.

Copy link
Contributor

@DDtKey DDtKey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me and provides enough of flexibility to users! 🚀

Thanks for the contribution!

@mervyn-mccreight WDYT?
It follows my suggestion above with the following priority:

  • explicit config from code (this PR)
  • auto-detected platform
  • fallback to default

@mominul
Copy link
Contributor Author

mominul commented Oct 14, 2025

Friendly ping ✋

Is anything remaining from my end?

@DDtKey DDtKey merged commit 1ec42ed into testcontainers:main Oct 27, 2025
17 of 18 checks passed
@github-actions github-actions bot mentioned this pull request Oct 27, 2025
DDtKey added a commit that referenced this pull request Oct 27, 2025
## 🤖 New release

* `testcontainers`: 0.25.1 -> 0.25.2

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

## [0.25.2] - 2025-10-27

### Details
#### Features
- Platform config passing through ImageExt trait
([#838](#838))

#### Miscellaneous Tasks
- Remove usage of reqwest hickory dns feature
([#860](#860))
- Drop weak dependencies due to cargo bug
([#862](#862))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Artem Medvedev <[email protected]>
DDtKey added a commit that referenced this pull request Oct 27, 2025
* `testcontainers`: 0.25.1 -> 0.25.2

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

- Platform config passing through ImageExt trait
([#838](#838))

- Remove usage of reqwest hickory dns feature
([#860](#860))
- Drop weak dependencies due to cargo bug
([#862](#862))
</blockquote>

</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Artem Medvedev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

is there any way to pass "platform" parameter when running docker images?

2 participants