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. https://github.com/apache/couchdb-docker/blob/1f85f08f840e0b7482c61ef2e0ed3fe30c1cf1b0/2.1.1/docker-entrypoint.sh#L29-L35 Maybe we can change it to the following command where the script will ignore the error? ```sh 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: us...@infra.apache.org With regards, Apache Git Services