Created
August 12, 2014 21:23
-
-
Save athoune/473310143b83b66f15c8 to your computer and use it in GitHub Desktop.
Building Influxdb
This file contains 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Download go linux binary in the same folder :
Use docker build:
Building package needs lvm which needs rvm which install an old ruby 1.9.3. Too painful.