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

feat: allow cgroupns-mode and userns-mode to be configured #605

Merged

Conversation

dghilardi
Copy link
Contributor

Allow cgroupns and userns to be defined when building RunnableImage

@dghilardi dghilardi force-pushed the feature/cgroupns-mode-userns-mode branch 3 times, most recently from 5010006 to d2c79d6 Compare April 29, 2024 18:26
Copy link
Collaborator

@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.

Thanks for the contribution!

I'd like to cover new configs with tests. Could we do that?

@dghilardi dghilardi force-pushed the feature/cgroupns-mode-userns-mode branch from fbedebc to 27ecb9c Compare April 30, 2024 17:41
* Add setters and getters for cgroupns-mode in RunnableImage
* Pass cgroupns_mode field to HostConfig during container start
* Add setters and getters for userns-mode in RunnableImage
* Pass userns_mode field to HostConfig during container start
@dghilardi dghilardi force-pushed the feature/cgroupns-mode-userns-mode branch from 27ecb9c to 38eac7b Compare April 30, 2024 17:47
@DDtKey
Copy link
Collaborator

DDtKey commented Apr 30, 2024

Thank you! 🙏

@DDtKey DDtKey merged commit 6d490dd into testcontainers:main Apr 30, 2024
8 checks passed
@github-actions github-actions bot mentioned this pull request Apr 30, 2024
DDtKey pushed a commit that referenced this pull request Apr 30, 2024
## 🤖 New release
* `testcontainers`: 0.16.5 -> 0.16.6 (✓ API compatible changes)

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

<blockquote>

## [0.16.6] - 2024-04-30

### Details
#### Features
- Add `get_host` to `Container` and deprecate `get_host_ip_address`
([#618](#618))
- Allow cgroupns-mode and userns-mode to be configured
([#605](#605))
</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.

2 participants