[GitHub] endyjasmi commented on issue #73: Configuration from docker config or secret?
endyjasmi commented on issue #73: Configuration from docker config or secret? URL: https://github.com/apache/couchdb-docker/issues/73#issuecomment-379983073 @wohali After I `-setcookie monster` to all the instance, it will auto recover the cluster after the configuration update. On the config and secret side of thing, I am currently mounting the `.ini` on file level rather than on `etc/` directory level. As for mounting the shared config as read only then mount a `etc/local.d/999-writeable-ini-file.ini`, I think this will works. Before that though, we will need to update this line to skip chmod on the mounted config or secret `.ini`. https://github.com/apache/couchdb-docker/blob/1f85f08f840e0b7482c61ef2e0ed3fe30c1cf1b0/2.1.1/docker-entrypoint.sh#L33 Personally though, I thought we can maybe fix `/opt/couchdb/etc/local.ini` as readonly and all writable `.ini` should contain within `/opt/couchdb/etc/local.d/*` directory. Then we can skip chmod on `/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
[GitHub] endyjasmi commented on issue #73: Configuration from docker config or secret?
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
[GitHub] endyjasmi commented on issue #73: Configuration from docker config or secret?
endyjasmi commented on issue #73: Configuration from docker config or secret? URL: https://github.com/apache/couchdb-docker/issues/73#issuecomment-379607760 https://github.com/apache/couchdb-docker/blob/1f85f08f840e0b7482c61ef2e0ed3fe30c1cf1b0/2.1.1/docker-entrypoint.sh#L29-L35 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