UPDATED - see bottom of post
Apologies in advance - n00b here.
I'm on a Mac and love the Docker deployment mechanism for Discourse. I was hoping I'd be able use this when developing a plugin. I tried using a "volume" to link my fledgling plugin from my Mac filesystem into the docker container like so:
## The Docker container is stateless; all data is stored in /shared
I thought this might allow me to edit plugin code in an IDE on my Mac, while running Discourse in Docker to test it as I code.
However, when I tried
./launcher rebuild app I got a load of permissions errors which prevented the rebuild:
I, [2016-07-06T21:06:08.196890 #14] INFO -- : > cd /var/www/discourse && chown -R discourse /var/www/discourse
chown: changing ownership of '/var/www/discourse/plugins/discourse-plugin-stripe/.git/objects/5e/1422c9c3f1ddaae47b5b1b597bc80748611993': Permission denied
chown: changing ownership of '/var/www/discourse/plugins/discourse-plugin-stripe/.git/objects/6c/4fb1c84c54a20a0d50facf10d4a18582956116': Permission denied
The perms for these files on my Mac are
root:/var/discourse $ ls -la /Users/chris/Development/discourse-plugin-stripe/.git/objects/5e/1422c9c3f1ddaae47b5b1b597bc80748611993
-r--r--r-- 1 chris staff 614 Jul 6 12:47 /Users/chris/Development/discourse-plugin-stripe/.git/objects/5e/1422c9c3f1ddaae47b5b1b597bc80748611993
UPDATED: I changed the volume to:
Then I added a step to the plugin setup commands:
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/PoloGT/abbreviation-discourse-plugin.git
- ln -snf /var/discourse-plugins/discourse-plugin-stripe discourse-plugin-stripe
This has got me further - I'm now able to rebuild the app.