Skip to content

Instantly share code, notes, and snippets.

@athoune
Created August 12, 2014 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save athoune/473310143b83b66f15c8 to your computer and use it in GitHub Desktop.
Save athoune/473310143b83b66f15c8 to your computer and use it in GitHub Desktop.
Building Influxdb
FROM debian:7.5
MAINTAINER mlecarme@bearstech.com
ENV DEBIAN_FRONTEND noninteractive
# Basic needed tools
RUN apt-get -q update
RUN apt-get -q install -y mercurial bzr protobuf-compiler flex bison \
valgrind g++ make autoconf libtool libz-dev libbz2-dev curl \
rpm build-essential git wget gawk procps
COPY go1.3.linux-amd64.tar.gz /tmp/
RUN cd /opt && tar -xzf /tmp/go*.tar.gz
RUN ln -s /opt/go/bin/* /usr/local/bin
RUN useradd influxdb
RUN mkdir -p /home/influxdb/go/src/github.com/influxdb
RUN mkdir /home/influxdb/.ssh/
RUN chown -R influxdb /home/influxdb
USER influxdb
ENV HOME /home/influxdb
ENV GOPATH /home/influxdb/go
ENV GOROOT /opt/go
RUN cd /home/influxdb/go/src/github.com/influxdb && git clone https://github.com/influxdb/influxdb.git
WORKDIR /home/influxdb/go/src/github.com/influxdb/influxdb
RUN ./configure
RUN make
@athoune
Copy link
Author

athoune commented Aug 12, 2014

Download go linux binary in the same folder :

wget http://golang.org/dl/go1.3.linux-amd64.tar.gz@

Use docker build:

docker build -t influxdb .

Building package needs lvm which needs rvm which install an old ruby 1.9.3. Too painful.

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