You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/07/10 16:50:57 UTC

[24/50] couchdb commit: updated refs/heads/master to 6526051

Dockerfile to run bigcouch cluster easily


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

Branch: refs/heads/master
Commit: f59f6eee1d4f3ced5902c8ac15bef01c2cac8b44
Parents: 7387381
Author: Robert Newson <rn...@apache.org>
Authored: Thu May 15 19:48:43 2014 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Fri May 16 14:08:32 2014 +0100

----------------------------------------------------------------------
 Dockerfile | 33 +++++++++++++++++++++++++++++++++
 Makefile   |  3 +++
 2 files changed, 36 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/f59f6eee/Dockerfile
----------------------------------------------------------------------
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..db28635
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,33 @@
+FROM debian:7.4
+MAINTAINER Robert Newson <rn...@apache.org>
+ENV DEBIAN_FRONTEND noninteractive
+
+# Install prereqs
+RUN echo "deb http://http.debian.net/debian wheezy-backports main" >> /etc/apt/sources.list
+RUN apt-get -qq update
+RUN apt-get -y install build-essential git libmozjs185-dev libicu-dev erlang-nox rebar
+
+# Set up user for the build
+RUN useradd -m couchdb
+USER couchdb
+
+# Get the source
+WORKDIR /home/couchdb
+RUN git clone https://git-wip-us.apache.org/repos/asf/couchdb.git
+
+# Switch branches
+WORKDIR /home/couchdb/couchdb
+RUN git checkout 1843-feature-bigcouch
+
+# We don't to be so strict for simple testing.
+RUN sed -i'' '/require_otp_vsn/d' rebar.config.script
+
+# Expose nodes on external network interface
+RUN sed -i'' 's/bind_address = 127.0.0.1/bind_address = 0.0.0.0/' rel/overlay/etc/default.ini
+
+# Build
+RUN ./configure
+RUN make
+
+EXPOSE 15984 25984 35984
+ENTRYPOINT ["/home/couchdb/couchdb/dev/run"]

http://git-wip-us.apache.org/repos/asf/couchdb/blob/f59f6eee/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index 812849d..4e3c3d0 100644
--- a/Makefile
+++ b/Makefile
@@ -67,3 +67,6 @@ nodes DB. For example, executing\n\
 will cause node 1 to immediately connect to nodes 2 and 3 and form a cluster.\n\
 The content of the nodes database is continuously replicated throughout the\n\
 cluster, so this is a one-time operation.\n"
+
+docker:
+	@docker build --no-cache --rm -t couchdb/1843-feature-bigcouch .