Skip to content

global: avoid building and testing as root#1

Closed
pks-t wants to merge 1 commit into
masterfrom
pks/non-root-builds
Closed

global: avoid building and testing as root#1
pks-t wants to merge 1 commit into
masterfrom
pks/non-root-builds

Conversation

@pks-t

@pks-t pks-t commented Jun 24, 2019

Copy link
Copy Markdown
Member

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.


Two possibilities: we could either create an entry point that chowns the build volume for us so that we can write into it, or alternatively we could chmod a+rwx it in "azure-pipelines/docker.yml". I'd personally vote for the latter

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 commented Sep 21, 2019

Copy link
Copy Markdown
Member Author

Dockerfiles are now hosted in libgit2 itself, I'm thus moving this PR there

@pks-t pks-t closed this Sep 21, 2019
@pks-t pks-t deleted the pks/non-root-builds branch September 21, 2019 13:07
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.

1 participant