-
Notifications
You must be signed in to change notification settings - Fork 347
Description
Hey y'all! (cc @brandonpayton and @fellyph)
Thanks for the quick work of my previous issue in Slack. I appreciate it! I'm running the new npm run rebuild:wordpress-builds
command and the Dockerfile is no longer getting overwritten, excellent 🙌 ...
I'm running into something else, and I thought I'd open an issue so it's not getting lost in Slack 🫠...
===
We have a use case that we want to host a local playground with custom plugins, block theme, and content. I'd like to be able to build that and deploy it to our servers. I'd like the custom playground to load with our plugins and theme active, and our content imported.
We could do this with a blueprint, but we really need to be able to keep this from being publicly accessible for now, so I'm working on building a custom playground that's ready to go and doesn't need to load in a blueprint; we can just go to our-custom-playground.our-site.com
and it will load.
To test, I've added the following to the Dockerfile above the strip whitespaces, per the documentation:
COPY ./build-assets/my-plugin.zip /root/
COPY ./build-assets/my-theme.zip /root/
COPY ./build-assets/content.xml /root/
RUN ls -al /root/
RUN cd wordpress ; \
echo "Importing content.."; \
../wp-cli.phar --allow-root import /root/content.xml --authors=create \
../wp-cli.phar --allow-root theme install --activate my-theme.zip \
../wp-cli.phar --allow-root plugin install --activate my-plugin.zip
my-plugin
, my-theme
and content
are all just stand-ins for plugins, they could be anything. I've put them all in packages/playground/wordpress-builds/build/build-assets
directory, I think this mimics what the documentation is suggesting...
but when I run the npm run rebuild:wordpress-builds command
, though, I'm getting an error that says Importing content../bin/sh: 1: ../wp-cli.phar: not found
I tried pulling WP-CLI down in the Dockerfile
, but then it's also asking for MySQL, and a db connection... So I think at this point I'm doing something wrong...
I see that there's a wp-cli.phar file in packages/playground/blueprints/tests/fixtures/wp-cli.phar
, I'm not sure if I should be referencing that... or how to get this going in the Docker build.
Thank you for your help!