Skip to content

Commit b71490c

Browse files
committed
include latest updates
1 parent 030f908 commit b71490c

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

2.3.1-ubi7/Dockerfile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,20 +94,15 @@ RUN set -xe; \
9494
# but we keep them as 755 and 644 for consistency with CouchDB defaults and the dockerfile_entrypoint.
9595
find /opt/couchdb/etc -type d ! -perm 0755 -exec chmod -f 0775 '{}' +; \
9696
find /opt/couchdb/etc -type f ! -perm 0644 -exec chmod -f 0664 '{}' +; \
97-
# only local.d needs to be writable for the docker_entrypoint.sh
98-
chmod -f 0777 /opt/couchdb/etc/local.d; \
9997
# Setup directories and permissions for data.
10098
chmod 777 /opt/couchdb/data
10199

102100
# Add the License
103101
COPY licenses /licenses
104102

105103
# Add configuration
106-
USER couchdb
107-
COPY resources/10-docker-default.ini /opt/couchdb/etc/default.d/
108-
COPY resources/vm.args /opt/couchdb/etc/
109-
USER root
110-
104+
COPY --chown=couchdb:0 resources/10-docker-default.ini /opt/couchdb/etc/default.d/
105+
COPY --chown=couchdb:0 resources/vm.args /opt/couchdb/etc/
111106
COPY resources/docker-entrypoint.sh /usr/local/bin
112107
COPY resources/run /etc/service/couchdb/
113108

2.3.1-ubi7/resources/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,14 @@ if [ "$1" = '/opt/couchdb/bin/couchdb' ]; then
103103
#!/bin/sh
104104
export HOME=/opt/couchdb
105105
exec 2>&1
106-
exec chpst -u couchdb $@
106+
exec chpst -u couchdb env ERL_FLAGS="$ERL_FLAGS" $@
107107
EOF
108108
else
109109
cat > /etc/service/couchdb/run <<-EOF
110110
#!/bin/sh
111111
export HOME=/opt/couchdb
112112
exec 2>&1
113-
exec chpst $@
113+
exec chpst env ERL_FLAGS="$ERL_FLAGS" $@
114114
EOF
115115
fi
116116

0 commit comments

Comments
 (0)