Skip to content

Instantly share code, notes, and snippets.

@garthk
Created January 22, 2014 02:19
Show Gist options
  • Save garthk/8552416 to your computer and use it in GitHub Desktop.
Save garthk/8552416 to your computer and use it in GitHub Desktop.
Dockerfile for building OpenTSDB 2.0.0 from git
# 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
@garthk
Copy link
Author

garthk commented Jan 22, 2014

After all of the dependencies, opentsdb-rebuild is 900MB. I figure I can use the opentsdb-2.0.0_all.deb result to build a much smaller image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment