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 specifying a user under which to run the container #135

Open
nhavens opened this issue Jun 16, 2022 · 1 comment · May be fixed by #136
Open

Support specifying a user under which to run the container #135

nhavens opened this issue Jun 16, 2022 · 1 comment · May be fixed by #136

Comments

@nhavens
Copy link

nhavens commented Jun 16, 2022

I'd like to be able to use tox-docker both to test via Jenkins as well as to test on my local machine. tox will run as a different user in each of these environments. To get the correct file permissions on any files created on volume mounts, I'd like to be able to specify the user under which to run the container. Without this, when I volume mount the directory from which tox runs and any files get created by the container with root ownership (I'm running as root in the container), the next Jenkins job's deleteDir() will fail with permission denied errors.

@nhavens nhavens linked a pull request Jun 17, 2022 that will close this issue
nhavens pushed a commit to nhavens/tox-docker that referenced this issue Jun 18, 2022
nhavens pushed a commit to nhavens/tox-docker that referenced this issue Jun 18, 2022
@dcrosta
Copy link
Member

dcrosta commented Mar 26, 2023

tox-docker 4.1.0 added support to build & use a Dockerfile in the repo. Does the USER command in a Dockerfile work for your needs here?

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 a pull request may close this issue.

2 participants