From b8d664e0f86f827ca5f7b3fcdf947f2db4d6ab5d Mon Sep 17 00:00:00 2001 From: TeamLinux01 <43735175+TeamLinux01@users.noreply.github.com> Date: Mon, 29 Apr 2019 15:11:01 -0400 Subject: [PATCH 1/2] Fix for startup speed This changes the base couchdb image so that the find command that sets ownership to couchdb:couchdb does not have to change 1600+ files every time the container is started. --- dev/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/Dockerfile b/dev/Dockerfile index d888ead..e66cfc0 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 chown -R couchdb:couchdb /opt/couchdb WORKDIR /opt/couchdb EXPOSE 5984 4369 9100 From 6036dff4c109e91cbc7cbb6e51d16fefc84faf4c Mon Sep 17 00:00:00 2001 From: TeamLinux01 <43735175+TeamLinux01@users.noreply.github.com> Date: Mon, 29 Apr 2019 15:17:52 -0400 Subject: [PATCH 2/2] Fix startup speed time This changes the base couchdb image so that the find command that sets ownership to couchdb:couchdb does not have to change 1600+ files every time the container is started. --- 2.3.1/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2.3.1/Dockerfile b/2.3.1/Dockerfile index da02869..56018a9 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 chown -R couchdb:couchdb /opt/couchdb VOLUME /opt/couchdb/data # 5984: Main CouchDB endpoint