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: add an easy way to configure users and groups and /tmp #129

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yajo
Copy link

@yajo yajo commented Apr 10, 2024

Just like nixpkgs provides dockerTools.shadowSetup, nix2container needs a quick way to configure users, groups and permissions within the container.

Here it is.

@moduon MT-1075

Copy link
Owner

@nlewo nlewo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job!

I'm wondering if we should create a kind of namespace for this kind of helpers.

Instead of nix2container.shadowLayer, I would suggest nix2container.layers.shadow.

Because, once we have nix2container.layers.shadow, i'm pretty sure we would like nix2container.layers.tmp to create /tmp.

What do you think?

Otherwise, this lgtm!

README.md Outdated Show resolved Hide resolved
Just like nixpkgs provides `dockerTools.shadowSetup`, nix2container needs a quick way to configure users, groups and permissions within the container.

Here it is.

@moduon MT-1075
Copy link
Author

@yajo yajo 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 your comments, all attended.

Copy link
Author

@yajo yajo 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 your comments, all attended.

@yajo
Copy link
Author

yajo commented May 17, 2024

Would you please let workflows run?

@yajo yajo changed the title feat: add an easy way to configure users and groups feat: add an easy way to configure users and groups and /tmp May 17, 2024
@yajo
Copy link
Author

yajo commented May 17, 2024

Tests are failing, but I think it's because of a lower-level issue that changes permissions when some derivation is in copyToRoot in a dependency layer. Could you help on that please?

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.

None yet

2 participants