Repository navigation
rootless roadrunner php #58
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
5958c2c
rootless php
USA-RedDragon f1d2cbb
strip rootful targets, nginx, and php-fpm in favor of roadrunner
USA-RedDragon e6918e2
ci: make only rootless images
USA-RedDragon 516f2c6
chore(scripts): be a bit more pedantic
USA-RedDragon ff0459b
restore fpm rootfs
USA-RedDragon a53d260
restore fpm dockerfile
USA-RedDragon 84f02c2
dockerfile: fpm remove ext-sockets from default
USA-RedDragon e08f4bb
ci: build both servers
USA-RedDragon 4c07787
ci: label build with server
USA-RedDragon 809b4ed
ci: ensure image tags for FPM are unchanged
USA-RedDragon 4024297
docker: rr: add sockets extension to PHP installation
USA-RedDragon 4202ae7
docker: rr: remove s6
USA-RedDragon e6c29d8
README: restore FPM/nginx sections
USA-RedDragon 87a3669
readme: document new image variant
USA-RedDragon 5e658c2
clevyr-build: re-add nginx templating
USA-RedDragon 208f361
chore: deduplicate build script
gabe565 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| #!/bin/sh | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| # Wrapper to run s6-svscan from a writable directory | ||
| # s6-svscan creates .s6-svscan in the service directory, so we need to copy services to /tmp | ||
|
|
||
| # See https://skarnet.org/software/s6/scandir.html | ||
|
|
||
| SERVICE_DIR="$1" | ||
|
|
||
| if [ -z "$SERVICE_DIR" ]; then | ||
| echo "Usage: $0 <service-directory>" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Create a unique directory in /tmp for our services | ||
| TEMP_SERVICE_DIR="/tmp/s6-services-$$" | ||
| mkdir -p "$TEMP_SERVICE_DIR" | ||
|
|
||
| # Copy the service directory contents to /tmp | ||
| cp -r "$SERVICE_DIR"/* "$TEMP_SERVICE_DIR/" 2>/dev/null || cp -r "$SERVICE_DIR"/. "$TEMP_SERVICE_DIR/" | ||
|
|
||
| # Run s6-svscan against the copied services | ||
| exec s6-svscan "$TEMP_SERVICE_DIR" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we no longer need this as RoadRunner should gracefully handle SIGTERM for shutdown: https://docs.roadrunner.dev/docs/app-server/cli#stopping-the-server.