Repository: mesos Updated Branches: refs/heads/master 83d90df12 -> 3455c8985
Add Dockerfile for building Mesos from source. Review: https://reviews.apache.org/r/25369 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/3455c898 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/3455c898 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/3455c898 Branch: refs/heads/master Commit: 3455c89859a1d5553789c7c8f51a012934fe7619 Parents: 83d90df Author: Gabriel Monroy <[email protected]> Authored: Thu Dec 4 12:37:10 2014 -0800 Committer: Timothy Chen <[email protected]> Committed: Fri Dec 5 16:37:16 2014 -0800 ---------------------------------------------------------------------- Dockerfile | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/3455c898/Dockerfile ---------------------------------------------------------------------- diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..35abf25 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,41 @@ +# +# Dockerfile for building Mesos from source +# +# Create snapshot builds with: +# docker build -t mesos/mesos:git-`git rev-parse --short HEAD` . +# +# Run master/slave with: +# docker run mesos/mesos:git-`git rev-parse --short HEAD` mesos-master [options] +# docker run mesos/mesos:git-`git rev-parse --short HEAD` mesos-slave [options] +# +FROM ubuntu:14.04 +MAINTAINER Gabriel Monroy <[email protected]> + +# build packages +ENV DEBIAN_FRONTEND noninteractive +RUN apt-get update +RUN apt-get install -yq build-essential autoconf libtool zlib1g-dev +RUN apt-get install -yq libcurl4-nss-dev libsasl2-dev +RUN apt-get install -yq openjdk-6-jdk maven +RUN apt-get install -yq python-dev python-boto +RUN apt-get install -yq libsvn-dev libapr1-dev + +# export environment +ENV JAVA_HOME /usr/lib/jvm/java-6-openjdk-amd64 + +# include libmesos on library path +ENV LD_LIBRARY_PATH /usr/local/lib + +# copy local checkout into /opt +ADD . /opt + +WORKDIR /opt + +# configure +RUN ./bootstrap +RUN mkdir build && cd build && ../configure + +WORKDIR /opt/build + +# build and cleanup in a single layer +RUN make -j4 install && cd / && rm -rf /opt
