couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject couchdb commit: updated refs/heads/master to 5c94e81
Date Sat, 19 Jul 2014 22:00:55 GMT
Repository: couchdb
Updated Branches:
  refs/heads/master afe467151 -> 5c94e815e


Dockerfile: Build rebar 2.5.0 from source


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

Branch: refs/heads/master
Commit: 5c94e815e60dc53db735243e0d532b03bbe319c3
Parents: afe4671
Author: Robert Newson <rnewson@apache.org>
Authored: Sat Jul 19 22:21:58 2014 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Sat Jul 19 23:00:40 2014 +0100

----------------------------------------------------------------------
 Dockerfile | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/5c94e815/Dockerfile
----------------------------------------------------------------------
diff --git a/Dockerfile b/Dockerfile
index 6e87b80..bc5a6e8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,14 +5,26 @@ 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
+RUN apt-get -y install build-essential git libmozjs185-dev libicu-dev erlang-nox erlang-dev
python wget
 
-# Set up user for the build
+# Set up user for the builds
 RUN useradd -m couchdb
+
+# Build rebar
 USER couchdb
+WORKDIR /home/couchdb
+
+RUN wget https://github.com/rebar/rebar/archive/2.5.0.tar.gz
+RUN tar xzf 2.5.0.tar.gz
+WORKDIR /home/couchdb/rebar-2.5.0
+RUN ./bootstrap
+USER root
+RUN cp rebar /usr/local/bin/
 
-# Get the source
+# Build couchdb
+USER couchdb
 WORKDIR /home/couchdb
+
 RUN git clone https://git-wip-us.apache.org/repos/asf/couchdb.git
 WORKDIR /home/couchdb/couchdb
 


Mime
View raw message