You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kl...@apache.org on 2015/12/19 17:37:13 UTC

[1/2] couchdb-docker git commit: 2.0: tweak readme concerning haproxy and flags

Repository: couchdb-docker
Updated Branches:
  refs/heads/master 2b046fbec -> 9270c8894


2.0: tweak readme concerning haproxy and flags


Project: http://git-wip-us.apache.org/repos/asf/couchdb-docker/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-docker/commit/34d52bd4
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-docker/tree/34d52bd4
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-docker/diff/34d52bd4

Branch: refs/heads/master
Commit: 34d52bd4994f193841087732a0a4df300ddc9b9b
Parents: 2b046fb
Author: klaemo <kl...@fastmail.fm>
Authored: Sat Dec 19 17:14:39 2015 +0100
Committer: klaemo <kl...@fastmail.fm>
Committed: Sat Dec 19 17:14:39 2015 +0100

----------------------------------------------------------------------
 README.md | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-docker/blob/34d52bd4/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 55f51b3..4690baa 100644
--- a/README.md
+++ b/README.md
@@ -52,7 +52,7 @@ Available on the docker registry as [klaemo/couchdb:2.0-dev](https://index.docke
 
 ```bash
 # expose the cluster to the world
-[sudo] docker run -p 5984:5984 klaemo/couchdb:2.0-dev
+[sudo] docker run -it -p 5984:5984 klaemo/couchdb:2.0-dev
 
 [ * ] Setup environment ... ok
 [ * ] Ensure CouchDB is built ... ok
@@ -70,14 +70,16 @@ Admin username: root
 Password: 37l7YDQJ
 Time to hack! ...
 ```
+**Note:** By default the cluster will be exposed on port `5984`, because it uses haproxy
+(passes `--with-haproxy` to `dev/run`) internally.
 
-...or you can pass arguments to the binary
+...but you can pass arguments to the binary
 
 ```bash
-docker run -i -t klaemo/couchdb:2.0-dev --admin=foo:bar
+docker run -it klaemo/couchdb:2.0-dev --admin=foo:bar
 ```
-
-**Note:** The cluster will be exposed on port `5984`, because it internally uses haproxy.
+**Note:** This will overwrite the default `--with-haproxy` flag. So, you have to specify it
+explicitly if you wish to use haproxy.
 
 ## Build your own
 


[2/2] couchdb-docker git commit: 2.0: more readme tweaks

Posted by kl...@apache.org.
2.0: more readme tweaks


Project: http://git-wip-us.apache.org/repos/asf/couchdb-docker/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-docker/commit/9270c889
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-docker/tree/9270c889
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-docker/diff/9270c889

Branch: refs/heads/master
Commit: 9270c889466b83ebd58e2f60476483a7d1a3cb32
Parents: 34d52bd
Author: klaemo <kl...@fastmail.fm>
Authored: Sat Dec 19 17:28:21 2015 +0100
Committer: klaemo <kl...@fastmail.fm>
Committed: Sat Dec 19 17:28:21 2015 +0100

----------------------------------------------------------------------
 README.md | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-docker/blob/9270c889/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 4690baa..373d6c5 100644
--- a/README.md
+++ b/README.md
@@ -78,8 +78,21 @@ Time to hack! ...
 ```bash
 docker run -it klaemo/couchdb:2.0-dev --admin=foo:bar
 ```
-**Note:** This will overwrite the default `--with-haproxy` flag. So, you have to specify it
-explicitly if you wish to use haproxy.
+**Note:** This will overwrite the default `--with-haproxy` flag. The cluster **won't** be exposed on
+port `5984` anymore. The individual nodes listen on `15984`, `25984`, ...`x5984`. If you wish to expose
+the cluster on `5984`, pass `--with-haproxy` explicitly.
+
+Examples:
+```bash
+# display the available options of the couchdb startup script
+docker run --rm klaemo/couchdb:2.0-dev --help
+
+# Enable admin party 🎉 and expose the cluster on port 5984
+docker run -it -p 5984:5984 klaemo/couchdb:2.0-dev --with-admin-party-please --with-haproxy
+
+# Start two nodes (without proxy) exposed on port 15984 and 25984
+docker run -it -p 15984:15984 -p 25984:25984 klaemo/couchdb:2.0-dev -n 2
+```
 
 ## Build your own