-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for easily importing themes and plugins #22
Comments
Continuing: A few ideas of methods to load plugins/themes:
I like the idea of shell script or HCL style config file, so that it can be passed in when launching a container noninteractively, applying those directives. The shell scripts can then be community-shared, no magic parsers required, it just applies them directly. It shouldn't need aim to be beautifully idempotent, like a full-blown provisioning system. If in doubt, take a snapshot before. Besides the stored data, if container's env gets messed up, it should be reversible/fixable, else just backup/import site into a fresh one. Multisite management commandsExtra topic, but it should be little work for nice reward to allow applying same commands to all sites, be it updating WordPress and plugins, taking backups, installing plugins or what not. Basically, like an Ansible/Rubdeck/Chef style Overall prioritiesThings which are easily done in WordPress, like backup/import/installing plugins are nice if we can do them in a smooth way that takes advantage of and compliments Lokl, but there is the usual WP way in the meantime. |
I like the idea of local templates or even an option for a user to pass in their own image. I also like keeping things simple so I would think creating a site, doing the normal wordpress stuff from UI, and then backing up would suffice. As I understand now that workflow is possible with lokl. When using this image with lokl-cli it seems uploading from UI is broken: However, if I hardcode lokl-cli to point to this image I am able to upload a theme through the UI: |
Perhaps I am conflating lokl and lokl-cli. Sorry for any confusion. |
Thanks, I'll check it out. A difference between those two should be using root everywhere, but I did notice some nginx owned things recently, that may lead me to the issue. |
Yep, just confirmed, that's my mistake, I'd taken a line out of the provisioning scripts which explicitly set all the webroot to You can run this once in one of the newer containers and will sort that out:
Using the |
@grovejc re
It does get a bit confusing :D
I'm pleasantly suprised that you could use the latest |
related to elementor/lokl-cli#21 I'll start work on a templating system to initially mount volumes and can later expand to extra provisioning steps |
As recently mentioned by Jonathon Grove and one of the first things my mate Donnacha commented on when first talking about Lokl.
Trying to think like a user who actually creates WordPress sites and for my own needs for rapidly testing different WP configurations, I'd like to see these features:
php8-5.0.0
Why not allow users to easily bundle desired plugins/themes during base image builds of Lokl?
Quick answer: it's difficult!
Long answer: running Lokl is aimed to be as simple as possible - copy paste a command and that's it. Building multiple Docker images and understanding provisioning shell scripts is a different level and I can just help those kind of developer-users to make modifications for their own build processes.
Alternative (thinking out loud)
The way I use
docker commit
to build the main Lokl releases could work well, vialokl-cli
wizard, even, to allow users to "Save this site as a template"That seems like a nice option that may suffice even for developer users.
Back to how to actually install themes/plugins and make other site modifications
TBC
The text was updated successfully, but these errors were encountered: