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

User mapping query #8

Open
clbarnes opened this issue Apr 27, 2022 · 3 comments
Open

User mapping query #8

clbarnes opened this issue Apr 27, 2022 · 3 comments

Comments

@clbarnes
Copy link

I'm using an image based on this one, and am struggling with file permissions.

If do not include a --user argument in docker run, then the artifacts produced by the image are owned by root rather than my local user. However, if I include --user "$(id -u):$(id -g)", then I get a "permission denied" error from tectonic (when there are no root-owned files in the local directory, which is mounted as a volume).

Any thoughts on why this might be and how to work around it?

@PHPirates
Copy link

Good question, I don't know the answer. I'd have thought that if you mount /etc/passwd tectonic has all the info it needs, because the user owning the file is the same as the one logged in, but apparently not. The error message does not say what permissions it is missing, maybe you can raise an issue at the Tectonic repo to find more logging.

@WtfJoke
Copy link
Owner

WtfJoke commented Apr 28, 2022

Sorry to disappoint, but I dont know the answer neither 🙈 . But I could also do some tests.

Can you also reproduce this with the alpine image?

@clbarnes
Copy link
Author

Here's a test repo: https://github.com/clbarnes/tectonic-docker-permissions . It has just commands for all of the orders of operations.

While the simple solution would seem to be "don't mix dockerised and non-dockerised builds", it's not quite so simple if e.g. you're using an IDE which runs builds on its own in the background for smart highlighting purposes.

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

No branches or pull requests

3 participants