endyjasmi commented on issue #73: Configuration from docker config or secret?
URL: https://github.com/apache/couchdb-docker/issues/73#issuecomment-379607760
   Docker config and secret by default seems to be read only system system. By 
chaging ownership and permission at the following `docker-entrypoint.sh` seems 
to cause trouble for the image to run.
   Maybe we can change it to the following command where the script will ignore 
the error?
    chown -R couchdb:couchdb /opt/couchdb
    chmod -R 0770 /opt/couchdb/data
    chmod 664 /opt/couchdb/etc/*.ini || true
    chmod 664 /opt/couchdb/etc/default.d/*.ini
    chmod 775 /opt/couchdb/etc/*.d
   It seems that couchdb will overwrite `.ini`'s inside `default.d` and 
`local.d` hence the config and secret cannot be mounted into those places. It 
should be save for us to mount it to `/opt/couchdb/etc/local.ini`.

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

Reply via email to