Lokl – WordPress local development environment for Mac, Win and Linux
lokl.dev
lokl.dev
[1] https://getflywheel.com/design-and-wordpress-resources/toolb...
I find Lokl and interesting take, although the usual self-serve script is kind of annoying for power users (what I mean is that this bash scripts tried to do everything for you and it's less transparent), I recommend the repo [4] as the source of the actual Dockerfiles, that you could just reference in something like a docker-compose setup.
The Dockerfiles are kind of surprising since they read more like a an ansible-playbook than like a Dockerfile. This one image has it all - php, nginx, mariadb, phpmyadmin and who knows what else [4]. It's an interesting approach to Docker images, certainly against the recommendation but might have some good reasoning for something as special as WordPress.
[0]: https://github.com/leonstafford/lokl-cli
[1]: https://github.com/leonstafford
[2]: https://github.com/leonstafford/wp2static
[3]: https://github.com/leonstafford/lokl
[4]: https://github.com/leonstafford/lokl/blob/master/php8/Docker...
i can totally see why they would go that route, even if unconventional. those are all the tools necessary for a WordPress installation, and if you wanted to go the conventional route, you'd have to run each one in a separate container and use something like compose to bring them all together - which can be a little tricky to get your head around.
by contrast, having only one Docker image to deploy means no leeway for the developer to get anything wrong. it's a known-good distribution of all of the tools, pre-configured to work together with each other seamlessly.
I see it as a "simulation" of a shared hosting account which from what I experienced the most common deployment strategy for WordPress sites. Usually these hosting though still have the db on a different machine and are usually are exposed via Apache using php-cgi. But it's good enough.
They could throw in some non-root account as the last step for good measure.
Local WordPress development sounds like something I might want or need, but have not looked into yet. It would be great to hear what's out there, what's good, and what one should look out for.
I’ve done a lot of development on the project, and it could always use more contributors: https://github.com/WordPress/gutenberg/tree/trunk/packages/e...