Add brubeck dockerfile
This commit is contained in:
parent
c7e8f9bb2a
commit
038e519137
|
@ -0,0 +1,21 @@
|
|||
FROM ubuntu:14.04
|
||||
MAINTAINER Gregory Eremin <g@erem.in>
|
||||
LABEL app="brubeck"
|
||||
LABEL github="https://github.com/github/brubeck"
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y libjansson-dev
|
||||
RUN apt-get install -y libssl-dev
|
||||
RUN apt-get install -y libmicrohttpd-dev
|
||||
RUN apt-get install -y git
|
||||
RUN apt-get install -y make
|
||||
|
||||
RUN mkdir /build
|
||||
RUN cd /build && git clone https://github.com/github/brubeck.git
|
||||
WORKDIR /build/brubeck
|
||||
RUN ./script/bootstrap
|
||||
|
||||
COPY configs/brubeck.json /etc/brubeck.json
|
||||
EXPOSE 8080 8126 9126
|
||||
ENTRYPOINT ./brubeck --config=/etc/brubeck.json
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"sharding": false,
|
||||
"server_name": "Brubeck",
|
||||
"dumpfile": "./brubeck.dump",
|
||||
"capacity": 15,
|
||||
"expire": 20,
|
||||
"http": ":8080",
|
||||
"backends": [
|
||||
{
|
||||
"type": "carbon",
|
||||
"address": "localhost",
|
||||
"port": 2003,
|
||||
"frequency": 10
|
||||
}
|
||||
],
|
||||
"samplers": [
|
||||
{
|
||||
"type": "statsd",
|
||||
"address": "0.0.0.0",
|
||||
"port": 8126,
|
||||
"workers": 4,
|
||||
"multisock": true,
|
||||
"multimsg": 8
|
||||
},
|
||||
{
|
||||
"type": "statsd-secure",
|
||||
"address": "0.0.0.0",
|
||||
"port": 9126,
|
||||
"max_drift": 3,
|
||||
"hmac_key": "750c783e6ab0b503eaa86e310a5db738",
|
||||
"replay_len": 8000
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue