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

MIT No Attribution
123 stars 111 forks source link

Why setting posix_user to root? #33

Open michas2 opened 1 year ago

michas2 commented 1 year ago

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?