plone / plone.docker

plone on docker
GNU General Public License v2.0
58 stars 69 forks source link

Add On Development #78

Closed heyjordn closed 6 years ago

heyjordn commented 6 years ago

Hi, this has been extremely useful for development with plone. Thanks for making/maintaining it!

I'm having an issue where I'd like to use this to do Add-on development, I've seen from docs where a PLONE_DEVELOP environmental variable is used. Can you provide an example of how I'd use this to develop a local add-on?

avoinea commented 6 years ago

@Pr0x1m4 Unfortunately this functionality is broken due #77

Basically, you have to run it like:

$ docker run -p 8080:8080 \
             -v $(pwd)/my.package:/plone/instance/src/my.package \
             -e ADDONS="my.package" \
             -e DEVELOP="src/my.package" \
         plone:5 fg

Don't forget to fix permissions:

$ setfacl  -R -m u:500:rwX $(pwd)/my.package
$ setfacl -dR -m u:500:rwX $(pwd)/my.package
$ getfacl $(pwd)/my.package

See related docs

heyjordn commented 6 years ago

@avoinea I see, thanks for the quick response, I'll try it that way and appreciate the help!

svx commented 6 years ago

Since there was/is no more activity I will close this issue now.

Feel free to re-open of course !