-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (25 loc) · 993 Bytes
/
Dockerfile
File metadata and controls
33 lines (25 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM node:6.11.1-alpine
ENV STATSD_PORT 8125
ENV STATSD_DUMP_MSG false
ENV STATSD_DEBUG false
ENV STATSD_FLUSH_INTERVAL 10000
ENV ELASTICSEARCH_PORT 9200
EXPOSE 8125/udp
RUN mkdir /etc/statsd
RUN apk update && \
apk add wget ca-certificates && \
wget https://s3.amazonaws.com/dispatchbot-devops/ca-chain.cert.pem && \
mv ca-chain.cert.pem /usr/local/share/ca-certificates/dispatchbot-ca-chain.cert.crt && \
cp /usr/local/share/ca-certificates/dispatchbot-ca-chain.cert.crt /etc/ssl/certs/. && \
update-ca-certificates && \
apk del wget && \
rm -rf /var/cache/apk/*
RUN apk update && \
apk add git && \
git clone git://github.com/etsy/statsd.git /usr/local/src/statsd && \
npm install git://github.com/DispatchBot/statsd-elasticsearch-backend.git#42225582be692ad87e02893673c0b5937cd51293 && \
apk del git && \
rm -rf /var/cache/apk/*
WORKDIR /usr/local/src/statsd
ADD config.js /etc/statsd/statsd.js
CMD node /usr/local/src/statsd/stats.js /etc/statsd/statsd.js