Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
410 views
in Technique[技术] by (71.8m points)

docker - How to have same plugins in WordPress Dev Container and Test Container w/o Copying Files

I have deployed two docker containers. The www (WordPress dev root) files have been mapped to my path:

~/WebSites/social.vinnies.org.au/

That works fine. I have also configured a docker container for tests at:

~/WebSites/social.vinnies.org.au/wp-content/themes/social/tests/docker

I want all the plugins from my dev environment to be on the test environment. That is, everything inside ~/WebSites/social.vinnies.org.au/wp-content/plugins should be the same in ~/WebSites/social.vinnies.org.au/wp-content/themes/social/tests/docker/wp-content/plugins

I have tried:

  • Symbolink links
  • MacOS aliases (just for shits and giggles).

I would really like to avoid copying all the files to the test server and reuse these files.

When I have used symbolic links (current path in this example is ~/WebSites/social.vinnies.org.au/wp-content/themes/social/tests/docker/wp-content):

ln -s ~/WebSites/social.vinnies.org.au/wp-content/plugins plugins

The plugins do not show up at all. This might be b/c of the way docker containers maps files, any workaround would be greatly appreciated!

(have been using Docker for < month, so please be gentle if what I am trying to accomplish is incredibly stupid).

question from:https://stackoverflow.com/questions/65837468/how-to-have-same-plugins-in-wordpress-dev-container-and-test-container-w-o-copyi

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...