localhots.xyz graphite-ish / 038e519
Add brubeck dockerfile Gregory Eremin 5 years ago
2 changed file(s) with 55 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 FROM ubuntu:14.04
1 MAINTAINER Gregory Eremin <g@erem.in>
2 LABEL app="brubeck"
3 LABEL github="https://github.com/github/brubeck"
4
5 ENV DEBIAN_FRONTEND noninteractive
6 RUN apt-get update
7 RUN apt-get install -y libjansson-dev
8 RUN apt-get install -y libssl-dev
9 RUN apt-get install -y libmicrohttpd-dev
10 RUN apt-get install -y git
11 RUN apt-get install -y make
12
13 RUN mkdir /build
14 RUN cd /build && git clone https://github.com/github/brubeck.git
15 WORKDIR /build/brubeck
16 RUN ./script/bootstrap
17
18 COPY configs/brubeck.json /etc/brubeck.json
19 EXPOSE 8080 8126 9126
20 ENTRYPOINT ./brubeck --config=/etc/brubeck.json
0 {
1 "sharding": false,
2 "server_name": "Brubeck",
3 "dumpfile": "./brubeck.dump",
4 "capacity": 15,
5 "expire": 20,
6 "http": ":8080",
7 "backends": [
8 {
9 "type": "carbon",
10 "address": "localhost",
11 "port": 2003,
12 "frequency": 10
13 }
14 ],
15 "samplers": [
16 {
17 "type": "statsd",
18 "address": "0.0.0.0",
19 "port": 8126,
20 "workers": 4,
21 "multisock": true,
22 "multimsg": 8
23 },
24 {
25 "type": "statsd-secure",
26 "address": "0.0.0.0",
27 "port": 9126,
28 "max_drift": 3,
29 "hmac_key": "750c783e6ab0b503eaa86e310a5db738",
30 "replay_len": 8000
31 }
32 ]
33 }