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

fix: properly expose mapped ports #610

Merged
merged 2 commits into from
Apr 29, 2024
Merged

fix: properly expose mapped ports #610

merged 2 commits into from
Apr 29, 2024

Conversation

DDtKey
Copy link
Collaborator

@DDtKey DDtKey commented Apr 29, 2024

We shouldn't auto-map exposed ports as part of port bindings if there are explicit mappings. Otherwise we use publish_all_ports option.

However, we should auto-expose mapped ports if Image impl doesn't. Because it's a way to override the behavior with RunnableImage.

@DDtKey DDtKey merged commit d93595f into main Apr 29, 2024
9 checks passed
@DDtKey DDtKey deleted the fix-mapped-ports branch April 29, 2024 19:50
@github-actions github-actions bot mentioned this pull request Apr 29, 2024
DDtKey pushed a commit that referenced this pull request Apr 29, 2024
## 🤖 New release
* `testcontainers`: 0.16.3 -> 0.16.4 (✓ API compatible changes)

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

<blockquote>

## [0.16.4] - 2024-04-29

### Details
#### Bug Fixes
- Properly expose mapped ports
([#610](#610))

#### Features
- Introduce `properties-config` cargo feature
([#608](#608))
- Support docker auth configuration for image pulling
([#609](#609))
</blockquote>


</p></details>

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

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

1 participant