Add Cloudflare D1 WordPress image variants#2
Merged
Merged
Conversation
Add wordpress-d1-php83/php84 image variants that bundle the SQLite Database Integration plugin with its Cloudflare D1 backend, the D1 db.php drop-in, and the native wp_mysql_parser and wp_d1_client Rust extensions, built from source against this flake's ZTS PHP. - The driver source is a git+https flake input (the project's .gitattributes marks /packages as export-ignore, which would exclude it from GitHub tarball downloads). - The Rust toolchain comes from a separate, fresh nixpkgs input; the main pin's cargo is too old for the extensions' lockfiles. - Extensions are loaded via PHP_INI_SCAN_DIR in the image environment (FrankenPHP's embedded PHP does not inherit the CLI wrapper's compiled-in scan directory, and appending them to the PHP buildEnv would create an evaluation cycle). - The entrypoint installs the plugin and, when WP_D1_PROXY_URL is set, the D1 database drop-in into the docroot. Verified: a full WordPress install onto a real local D1 database (wrangler dev) from this image, over the native client extension. Co-Authored-By: Claude Fable 5 <noreply@anthropic.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.
Add wordpress-d1-php83/php84 image variants that bundle the SQLite Database Integration plugin with its Cloudflare D1 backend, the D1 db.php drop-in, and the native wp_mysql_parser and wp_d1_client Rust extensions, built from source against this flake's ZTS PHP.
Verified: a full WordPress install onto a real local D1 database (wrangler dev) from this image, over the native client extension.