This is an automated email from the ASF dual-hosted git repository.
willholley pushed a commit to branch custom_uid
in repository https://gitbox.apache.org/repos/asf/couchdb-docker.git
The following commit(s) were added to refs/heads/custom_uid by this push:
new 973533e fixup! fixup! fixup! fixup! allow running as arbitrary uid
973533e is described below
commit 973533efaba574047b308a4970181ab02cdaa8fd
Author: Will Holley <[email protected]>
AuthorDate: Tue Aug 13 13:10:27 2019 +0100
fixup! fixup! fixup! fixup! allow running as arbitrary uid
---
2.3.1/Dockerfile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/2.3.1/Dockerfile b/2.3.1/Dockerfile
index 5001fc0..d653d11 100644
--- a/2.3.1/Dockerfile
+++ b/2.3.1/Dockerfile
@@ -121,7 +121,8 @@ COPY docker-entrypoint.sh /usr/local/bin
RUN ln -s usr/local/bin/docker-entrypoint.sh /docker-entrypoint.sh # backwards
compat
ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]
-# Setup directories and permissions for config
+# Setup directories and permissions for config. Technically these could be 555
and 444 respectively
+# but we keep them as 755 and 644 for consistency with CouchDB defaults and
the dockerfile_entrypoint.
RUN find /opt/couchdb/etc -type d ! -perm 0755 -exec chmod -f 0755 '{}' +; \
find /opt/couchdb/etc -type f ! -perm 0644 -exec chmod -f 0644 '{}' +; \
# only local.d needs to be writable for the docker_entrypoint.sh