Skip to content
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

Docker CLI commands run as user root still #15

Closed
fideloper opened this issue Oct 19, 2017 · 2 comments
Closed

Docker CLI commands run as user root still #15

fideloper opened this issue Oct 19, 2017 · 2 comments

Comments

@fideloper
Copy link
Contributor

fideloper commented Oct 19, 2017

In two cases:

  1. The "I don't have php7 caveat" when using Linux
  2. CLI (instead of php-fpm) commands when using Linux
@fideloper
Copy link
Contributor Author

fideloper commented Oct 21, 2017

Gonna have to get fancy with this issue similar to how MySQL does, using gosu.

Example installation here: https://github.com/docker-library/mysql/blob/86431f073b3d2f963d21e33cb8943f0bdcdf143d/8.0/Dockerfile#L6-L17

Additionally:

  1. ENTRYPOINT script should run as root to correctly create/destroy symlinks
  2. exec call to composer, phpunit, artisan should use gosu to run command as $WWWUSER
  3. app container should have a /.composer directory created & chmod -R ugo+rw'ed

This will be done in PR #21

@fideloper
Copy link
Contributor Author

Fixed in #21

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

No branches or pull requests

1 participant