wohali closed pull request #43: Add http port and bind address environment
options for 2.1.1
URL: https://github.com/apache/couchdb-docker/pull/43
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/2.1.1/docker-entrypoint.sh b/2.1.1/docker-entrypoint.sh
index dda823d..7d30b48 100755
--- a/2.1.1/docker-entrypoint.sh
+++ b/2.1.1/docker-entrypoint.sh
@@ -50,6 +50,9 @@ if [ "$1" = '/opt/couchdb/bin/couchdb' ]; then
chown couchdb:couchdb /opt/couchdb/etc/local.d/docker.ini
fi
+ printf "[chttpd]\nport = %s\nbind_address = %s\n"
${COUCHDB_HTTP_PORT:=5984} ${COUCHDB_HTTP_BIND_ADDRESS:=0.0.0.0} >
/opt/couchdb/etc/local.d/bind_address.ini
+ chown couchdb:couchdb /opt/couchdb/etc/local.d/bind_address.ini
+
# if we don't find an [admins] section followed by a non-comment,
display a warning
if ! grep -Pzoqr '\[admins\]\n[^;]\w+' /opt/couchdb/etc/local.d/*.ini;
then
# The - option suppresses leading tabs but *not* spaces. :)
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services