-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run composer as non root #1532
Comments
When I did a
I was able to run composer as laradock:
Still, would love to hear if this is better practice this way. Or if there are other, better and or easier ways. |
That is strange, normally the '/var/www' folder should already be owned by the 'laradock' user. I saw that the id of the owner of the folder is '1001'
I guess that's the user of your host machine. |
well when I follow the guide and install as root using git clone, then get into the workspace it shows all files owned by root @Dryr
And I think that is as all was git cloned as root. How do you normally set Laradock and an app up? Perhaps differently. |
I'm facing a similar issue while using Laradock within my Jenkins testing process (Not the jenkins container from this package). There, Jenkins create the workspace and git pull my laravel app using the "jenkins:jenkins" user. Then I run
So far, so good. During the process, i run If i try set the user with
Furthermore, if i run the process as root, jenkins is unable to remove the vendor folder at the end of build. |
I see. So this is still ongoing. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi again 👋 we would like to inform you that this issue has been automatically |
Info:
$ docker --version
): Docker version 17.12.0-ce, build c97c6d6$ git rev-parse HEAD
): 0c41fceIssue:
Guide http://laradock.io/guides/#Digital-Ocean tells to run composer as root in workspace. That is discouraged
Expected behavior:
Should be a non root user that can work on this. Also the entire laravel setup following the guide is run under root. That is going to cause rights and permissions issues
Reproduce:
Follow the Digital Ocean production setup guide. Use Docker image at Digital Ocean. Do a
docker-compose up -d nginx mariadb workspace
. Let it all be installed Go into workspace usingdocker-compose exec workspace bash
. Then go to /var/www/ and see that the guide tells you to run composer install as ROOT.Do think the non root user laradock should be used instead no? But when I do run the composer install as laradock I get this
The text was updated successfully, but these errors were encountered: