Created
January 22, 2014 02:19
-
-
Save garthk/8552416 to your computer and use it in GitHub Desktop.
Dockerfile for building OpenTSDB 2.0.0 from git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OpenTSDB build container | |
# Usage: | |
# docker build -t=opentsdb-build . | |
# docker run -name=opentsdb-building opentsdb-build ./build.sh debian | |
# docker commit opentsdb-building opentsdb-rebuild | |
# docker run -rm -v=$(pwd):/tmp/results opentsdb-rebuild cp /opt/opentsdb/build/opentsdb-2.0.0/opentsdb-2.0.0_all.deb /tmp/results | |
FROM stackbrew/ubuntu:precise | |
MAINTAINER Garth Kidd <[email protected]> | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN locale-gen en_US.UTF-8 | |
ENV LANG en_US.UTF-8 | |
RUN echo 'deb http://archive.ubuntu.com/ubuntu precise main universe' > /etc/apt/sources.list | |
RUN apt-get update && apt-get upgrade -y | |
RUN apt-get install -y gnuplot git-core build-essential automake libtool curl | |
RUN apt-get install -y openjdk-6-jdk | |
RUN git clone git://github.com/OpenTSDB/opentsdb.git /opt/opentsdb | |
RUN cd /opt/opentsdb && git checkout origin/next_lastdp | |
WORKDIR /opt/opentsdb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After all of the dependencies,
opentsdb-rebuild
is 900MB. I figure I can use theopentsdb-2.0.0_all.deb
result to build a much smaller image.