edbizarro / gitlab-ci-pipeline-php

:coffee: Docker images for test PHP applications with Gitlab CI (or any other CI platform!)
https://hub.docker.com/r/edbizarro/gitlab-ci-pipeline-php
MIT License
529 stars 167 forks source link

Question: user/group permissions on checked out files/folder #40

Closed josefglatz closed 6 years ago

josefglatz commented 6 years ago

is there any known/correct solution with GitLab CI and edbizaro/gitlab-ci-pipeline-php to make checked out files editable by the containers user php?

We have actually the problem, that a gulp script (node) can't edit/override an existing file which was checked out from VCS.

The checked out files are rw-rw-rw- for every group. Owner is: root:root.

Should I only run a chown like cd $CI_PROJECT_DIR && chown -R :aGroupWhichUserPhpBelongsTo ?

edbizarro commented 6 years ago

Hi @josefglatz your yarn/npm install commands are running with sudo? Maybe this is the problem.

Are you running those commands inside a Gitlab/CI Pipeline or local with docker run?

edbizarro commented 6 years ago

hi @josefglatz did you get it to work?

josefglatz commented 5 years ago

hi, seems so. But this works in the last couple of month!