FrankenPHP WordPress OCI built with Nix #30
batonac
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
👋 hey everyone! Thanks so much for FrankenPHP and FrankenWP!
I'm working on my own WordPress k8s-based hosting setup utilizing FrankenPHP, and decided to built my own OCI images using Nix. As I see it, this provides an extremely elegant solution for customizing PHP versions, build compiler and flags, PHP extensions, PHP INI settings, and runtime scripts, all in one unified configuration syntax.
You can view my work here: https://github.com/avunu/wordpress. The juiciest parts are found in wordpress.nix. This particular configuration very opinionated for my particular deployment, and I think the complexity could be dialed back quite a bit for a more general purpose audience. Compared to the current FrankenWP images, I don't bundle WordPress in the image (I download it at runtime, if needed), and I didn't get the FrankenWP cache working either. I took a stab at it, but moved on for now.
I don't know who is maintaining the FrankenPHP package in NixOS, but it seems to be staying abreast with FrankenPHP releases, and I'm super happy with how easy this is to produce the exact configuration that I need.
I humbly submit this as a template for the future of FrankenWP and other official FrankenPHP OCI images.
Beta Was this translation helpful? Give feedback.
All reactions