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

azure: avoid building and testing in Docker as root #5239

Merged
merged 1 commit into from
Sep 28, 2019

Conversation

pks-t
Copy link
Member

@pks-t pks-t commented Sep 21, 2019

Right now, all tests in libgit2's CI are being executed as root
user. As libgit2 will usually not run as a root user in "normal"
usecases and furthermore as there are tests that rely on the
ability to not be able to create certain paths, let's instead
create an unprivileged user "libgit2" and use that across all
docker images.

@pks-t pks-t force-pushed the pks/docker-non-root-builds branch 2 times, most recently from 071911f to f1bd2ff Compare September 21, 2019 16:18
Right now, all tests in libgit2's CI are being executed as root
user. As libgit2 will usually not run as a root user in "normal"
usecases and furthermore as there are tests that rely on the
ability to _not_ be able to create certain paths, let's instead
create an unprivileged user "libgit2" and use that across all
docker images.
@pks-t pks-t force-pushed the pks/docker-non-root-builds branch from f1bd2ff to 3c884cc Compare September 21, 2019 17:18
Copy link
Member

@ethomson ethomson left a comment

Choose a reason for hiding this comment

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

Yep, this is a good improvement. Thanks!

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