2016-07-06 18:50:23 +00:00
|
|
|
FROM ubuntu:14.04
|
|
|
|
MAINTAINER Gregory Eremin <g@erem.in>
|
2016-07-06 19:51:10 +00:00
|
|
|
LABEL app="go-carbon"
|
|
|
|
LABEL version="0.7.2"
|
|
|
|
LABEL github="https://github.com/lomik/go-carbon"
|
2016-07-06 18:50:23 +00:00
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN apt-get update && apt-get install -y make git golang
|
|
|
|
|
|
|
|
RUN mkdir /build
|
|
|
|
RUN cd /build && git clone https://github.com/lomik/go-carbon.git
|
|
|
|
WORKDIR /build/go-carbon
|
|
|
|
RUN git checkout v0.7.2
|
|
|
|
RUN make submodules && make
|
|
|
|
|
|
|
|
COPY configs/carbon.toml /etc/carbon.toml
|
|
|
|
COPY configs/storage-schemas.conf /etc/storage-schemas.conf
|
|
|
|
RUN mkdir -p /data/graphite/whisper
|
2016-07-06 19:51:10 +00:00
|
|
|
EXPOSE 2003 2004 7002
|
2016-07-06 18:50:23 +00:00
|
|
|
ENTRYPOINT ./go-carbon -config=/etc/carbon.toml
|