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

Support for setting uid and gid #762

Open
bimtauer opened this issue Jan 3, 2025 · 1 comment
Open

Support for setting uid and gid #762

bimtauer opened this issue Jan 3, 2025 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@bimtauer
Copy link

bimtauer commented Jan 3, 2025

For other languages testcontainers seems to support the option of customising the user that the container runs as (see e.g. NodeJS).

This is useful when using volume mounts in some controlled environment for example Github Actions. Without being able to set the uid to 1001 in github actions, files produced by a testcontainer cannot be opened due to filesystem permissions.

I assume the way to do this would be adding with_user to image_ext.rs.

I might be able to give this a try but wanted to check first here if this is a desired feature and if someone is maybe already on it.

@DDtKey DDtKey added help wanted Extra attention is needed good first issue Good for newcomers labels Jan 3, 2025
@mervyn-mccreight
Copy link
Contributor

I think this sounds like a useful feature 👍
AFAIK nobody is working on something like it, so we'd be very happy about a contribution from your side!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants