aws-samples / serverless-jenkins-on-aws-fargate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why setting posix_user to root?

michas2 opened this issue · comments

https://github.com/aws-samples/serverless-jenkins-on-aws-fargate/blob/main/modules/jenkins_platform/efs.tf#L24-L35

The module will create an efs access point, with the root directory belonging to jenkins, but the all the operation are done as root. (uid=0)
Therefore all the files will belong to root and git will complain about fatal: detected dubious ownership in repository.

What is the purpose of mapping to root here?
What is the correct way of allowing git checkouts with that?