I'm trying to run KIE Drools Workbench in docker.
If I stop the container, I lose my git repo, and this is getting super annoying (because the KIE UI forces you to upload your rules one by one).
Instead I want the container to use a host dir for its git repo.
So I've tried mapping a local host dir /opt/git to where I figured it stores the git repo
docker run -v /opt/git:/opt/jboss/wildfly/bin/.niogit -d --name drools-brms jboss/brms:6.3.0.Final
But I get:
Caused by: java.io.IOException: Creating directories for /opt/git/.niogit/system.git failed
/opt/git is owned by root on the host. Is there any way to give chown permissions to the jboss user who only exists in the container?
Doesn't seem like it :/