[Sylius Hackathon - Paris Mars 2025] Add FrankenPHP build - #9
Open
Prometee wants to merge 45 commits into
Open
Conversation
Prometee
force-pushed
the
frankenphp
branch
10 times, most recently
from
March 29, 2025 18:07
4a5dbc2 to
20f1758
Compare
Prometee
force-pushed
the
frankenphp
branch
2 times, most recently
from
March 29, 2025 18:37
28f1259 to
357b508
Compare
Author
|
Note: a new repository variable will be needed: value: |
diimpp
reviewed
Apr 7, 2025
Co-authored-by: Dmitri Perunov <diimpp@gmail.com>
Co-authored-by: Dmitri Perunov <diimpp@gmail.com>
Co-authored-by: Dmitri Perunov <diimpp@gmail.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces a comprehensive CI workflow for building and testing FrankenPHP Docker images for Sylius, along with necessary configurations and Dockerfiles. The key changes include the addition of a GitHub Actions workflow, Dockerfile configurations for different environments, and Bazel build and test configurations.
GitHub Actions Workflow:
.github/workflows/sylius-frankenphp.ymlto define a CI pipeline for building and testing FrankenPHP Docker images with different PHP versions and distributions. This includes steps for setting up QEMU, caching Docker layers, building multi-platform images, and running Bazel tests.Dockerfile Configurations:
frankenphp/Dockerfilewith multi-stage builds for base, development, and production FrankenPHP images. This includes installing necessary PHP extensions, setting up Composer, and defining health checks and commands for different environments.Bazel Build and Test:
frankenphp/BUILDto include Bazel build and test configurations for different architectures and PHP versions. This leveragescontainer_importandcontainer_testrules from Bazel's Docker rules.Configuration Files:
frankenphp/conf.d/app.inifor general settings.frankenphp/conf.d/app-cli.inifor CLI-specific settings.frankenphp/conf.d/app.dev.inifor development environment settings with Xdebug.frankenphp/conf.d/app.prod.inifor production environment settings.Test Data:
container_test. These files define tests for file existence, permissions, and command outputs. [1] [2] [3] [4]