You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wo...@apache.org on 2019/04/30 20:49:39 UTC

[couchdb-docker] 01/01: Speed up startup time, fixes #131

This is an automated email from the ASF dual-hosted git repository.

wohali pushed a commit to branch speedup-startup
in repository https://gitbox.apache.org/repos/asf/couchdb-docker.git

commit ce931b02d03720683eb38a794114b763cd8fe061
Author: Joan Touzet <wo...@apache.org>
AuthorDate: Tue Apr 30 13:49:19 2019 -0700

    Speed up startup time, fixes #131
---
 2.3.0/Dockerfile | 2 +-
 2.3.1/Dockerfile | 2 +-
 dev/Dockerfile   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/2.3.0/Dockerfile b/2.3.0/Dockerfile
index ad1d3d3..710f3c9 100644
--- a/2.3.0/Dockerfile
+++ b/2.3.0/Dockerfile
@@ -119,7 +119,7 @@ RUN ln -s usr/local/bin/docker-entrypoint.sh /docker-entrypoint.sh # backwards c
 ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]
 
 # Setup directories and permissions
-RUN chown -R couchdb:couchdb /opt/couchdb/etc/default.d/ /opt/couchdb/etc/vm.args
+RUN find /opt/couchdb \! \( -user couchdb -group couchdb \) -exec chown -f couchdb:couchdb '{}' +
 VOLUME /opt/couchdb/data
 
 # 5984: Main CouchDB endpoint
diff --git a/2.3.1/Dockerfile b/2.3.1/Dockerfile
index da02869..a266ed8 100644
--- a/2.3.1/Dockerfile
+++ b/2.3.1/Dockerfile
@@ -122,7 +122,7 @@ RUN ln -s usr/local/bin/docker-entrypoint.sh /docker-entrypoint.sh # backwards c
 ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]
 
 # Setup directories and permissions
-RUN chown -R couchdb:couchdb /opt/couchdb/etc/default.d/ /opt/couchdb/etc/vm.args
+RUN find /opt/couchdb \! \( -user couchdb -group couchdb \) -exec chown -f couchdb:couchdb '{}' +
 VOLUME /opt/couchdb/data
 
 # 5984: Main CouchDB endpoint
diff --git a/dev/Dockerfile b/dev/Dockerfile
index d888ead..f3ab329 100644
--- a/dev/Dockerfile
+++ b/dev/Dockerfile
@@ -146,7 +146,7 @@ COPY vm.args /opt/couchdb/etc/
 COPY docker-entrypoint.sh /
 
 # Setup directories and permissions
-RUN chown -R couchdb:couchdb /opt/couchdb/etc/default.d/ /opt/couchdb/etc/vm.args
+RUN find /opt/couchdb \! \( -user couchdb -group couchdb \) -exec chown -f couchdb:couchdb '{}' +
 
 WORKDIR /opt/couchdb
 EXPOSE 5984 4369 9100