Active
Project:
DrupalCI: Environments
Component:
PHP Containers
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Apr 2024 at 22:22 UTC
Updated:
11 Feb 2026 at 05:50 UTC
Jump to comment: Most recent
I'd like to be able to run the core tests with FrankenPHP as the webserver, see #3437187: Add Caddyfile configuration.
Down the line it'll help us test Drupal in an application-server situation #2218651: [meta] Make Drupal compatible with persistent app servers like ReactPHP, PHP-PM, PHPFastCGI, FrankenPHP, Swoole.
The docker documentation is at: https://frankenphp.dev/docs/docker/
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mstrelan commentedPerhaps as a starting point we could just add the frankenphp static binary to an existing image (like drupalci/php-8.2-cli) and work to build our own image over time.
We also need to configure a valid SSL certificate or disable HTTPS by setting the env var
SERVER_NAME=:80.Comment #3
andypost++ to add new image but I think it needs own build process as other images doing
Maybe before that create a base
php:8.3-tsimage, the rest could be build from itComment #4
andypostComment #5
andypostComment #6
mstrelan commentedI attempted to build this and run it in Drupal Gitlab CI but ran in to issues with file permissions and ownership. I have been able to run it in Github Actions which passes tests until the runner reaches the disk space limit. I've reached a point where I need help to proceed further. Happy for feedback on mstrelan/drupalci-frankenphp but probably be good to start an MR here.
Comment #7
andypostall images been updated to 8.3.11 and there was new golang/frankenphp releases
Comment #8
andypostImage needs support for #3202016: Let GDToolkit support AVIF image format
Comment #10
andypostAdded "dev" image for testing https://git.drupalcode.org/project/drupalci_environments/-/jobs/2753403
Comment #13
catchComment #14
nicxvan commentedHow would we go about using this to test?
Comment #15
el7cosmosfrankenphp server won't start properly on https://www.drupal.org/project/drupal/issues/3437187.
running
frankenphp php-server -a -dgiveswe should get rid of
-dor pass something likelocalhost.Comment #17
nod_we should use the Caddyfile from #3437187: Add Caddyfile configuration and
frankenphp run.I have some setup steps maybe that could help see how it's running? https://tresbien.tech/blog/drupal-and-php-fun-frankenphp/
Comment #21
andypostmake it work locally but it need more tuning to run tests properly in
subdirectory