Skip to content

Entrypoint.sh Wordpress Copy Process Skipping wp-content when mounted. #344

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

Closed
JD1337 opened this issue Oct 26, 2018 · 3 comments
Closed
Labels
question Usability question, not directly related to an error with the image

Comments

@JD1337
Copy link

JD1337 commented Oct 26, 2018

I was hoping to be able to use the standard wordpress image to preinstall themes and plugins by mounting the wp-content folder that contains the themes I wanted into the /usr/src/wordpress/wp-content/ folder.

The idea was that this would get copied across as per normal during the entrypoint.sh

tar cf - --one-file-system -C /usr/src/wordpress . | tar xf -

however, because of the --one-file-system option tar is ignoring the mounted volume with the following verbose error

tar: ./wp-content/: file is on a different filesystem; not dumped

simply removing the option appears to work correctly. Was there a reason this was included? Can we remove it?

tar cf - -C /usr/src/wordpress . | tar xf -

@wglambert wglambert added the question Usability question, not directly related to an error with the image label Oct 26, 2018
@wglambert
Copy link

#341
Plugins go in /usr/src/wordpress/wp-content/plugins
Themes go in /usr/src/wordpress/wp-content/themes

FROM wordpress

ADD ./wordpress_theme /usr/src/wordpress/wp-content/themes/wordpress_theme

I'll go make a docs PR

@wglambert
Copy link

I've noticed that the --one-file-system does cause some problems as well; notably when looking at the theme in the webui themes tab I see Stylesheet is missing.. So mounting instead to /var/www/html/wp-content/themes/ will mount the files correctly.

@tianon
Copy link
Member

tianon commented Oct 26, 2018

Doh, not sure why we used --one-file-system in the first place -- IMO removing that makes sense. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usability question, not directly related to an error with the image
Projects
None yet
Development

No branches or pull requests

3 participants