Customizing the Dockerfile not working as expected #1068
Replies: 4 comments 1 reply
-
Sorry, I see I need to rebuild the docker image, not jus run |
Beta Was this translation helpful? Give feedback.
-
Re-opening this as I'm still not 100% sure. Rebuilding the image does make the changes inside of my docker image, but I don't see any changes reflected on the local site at Also, I don't see the Hello Dolly plugin code in any of the WordPress directories (wp-6.4, wp-6.3 etc.), and I do see the Akismet plugin. In WordPress playground Hello Dolly is present but Akismet is not. Why is that? Any tips to get this working? I'm probably just doing something incorrectly. |
Beta Was this translation helpful? Give feedback.
-
@EvanHerman to rebuild WordPress using that Dockerfile, you'll need to run What's your goal here? If you want to use Playground with a custom WordPress build, you could setup a regular WordPress site (with the SQLite plugin), zip it up, host it somewhere where it would be served with the proper CORS headers, and then start Playground like |
Beta Was this translation helpful? Give feedback.
-
Hi @adamziel I'm more or less looking at hosting my own playground instance, so that when a user visits the site there are pre-installed plugins and set a theme, to cut out the multiple |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Forgive me if I am doing this incorrectly, but I'm just trying to make a simple change to the Dockerfile to play around with customizing the WordPress playground instance. I commented out the line where Akismet is being removed, and rebuilt the project but I'm not seeing Akismet as an installed plugin in the instance.
I was following the docs here https://wordpress.github.io/wordpress-playground/architecture/host-your-own-playground#install-plugins
Steps I took:
packages/playground/wordpress/build/Dockerfile
.RUN rm -rf wordpress/wp-content/plugins/akismet
npm run build
ornx build playground-client
.npm run dev
.http://localhost:5400/website-server/
in browser and checkwp-admin/plugins.php
for Akismet.https://github.com/WordPress/wordpress-playground/blob/trunk/packages/playground/wordpress/build/Dockerfile#L46
Am I editing the wrong file? How can I get the changes to the Dockerfile working?
Beta Was this translation helpful? Give feedback.
All reactions