Skip to content

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

Merged
ethomson merged 1 commit intolibgit2:masterfrom
pks-t:pks/docker-non-root-builds
Sep 28, 2019
Merged

azure: avoid building and testing in Docker as root#5239
ethomson merged 1 commit intolibgit2:masterfrom
pks-t:pks/docker-non-root-builds

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