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

Added gosu to os dependencies #287

Closed
wants to merge 1 commit into from

Conversation

sergiorodenas
Copy link

Gosu is needed for doing later command: ["gosu", "www-data", "/usr/local/bin/php", "artisan", "horizon"] as the
su version command: ["su", "www-data", "-c", "/usr/local/bin/php", "artisan", "horizon"] won't work due the www-data user having the login disabled internally.

@AlejandroAkbal
Copy link

AlejandroAkbal commented Mar 8, 2024

Yeah, without this, using other user won't work, until it gets merged, this is a workaround:

Create a dockerfile with this

FROM serversideup/php:beta-${PHP_VERSION}-fpm-nginx

# TODO: Fix for gosu, remove when this is merged: https://github.com/serversideup/docker-php/pull/287
RUN docker-php-serversideup-dep-install-debian "gosu"

Compose:

    laravel-horizon:
        build:
          context: .
          dockerfile: Dockerfile
        command: ["gosu", "www-data", "/usr/local/bin/php", "artisan", "horizon"]

@jaydrogers
Copy link
Member

Instead of the complexities with changing users, what do you think about this approach instead? #179 (comment)

@AlejandroAkbal
Copy link

This can now be closed

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

Successfully merging this pull request may close these issues.

None yet

3 participants