-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (26 loc) · 1.1 KB
/
Dockerfile
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
34
35
36
37
38
39
40
41
42
43
44
FROM redis:latest
# pre-req
RUN mkdir -p /usr/share/man/man1
# requirements
RUN apt-get update && \
apt-get install -y apt-utils apt-transport-https curl collectd collectd-utils dirmngr gnupg2 librdkafka-dev libhiredis-dev --option=Dpkg::Options::=--force-confdef
RUN echo 'deb https://apt.datadoghq.com/ stable 6' > /etc/apt/sources.list.d/datadog.list && \
apt-key adv --recv-keys --keyserver "hkp://keyserver.ubuntu.com:80" 382E94DE && \
apt-get update -o Dir::Etc::sourcelist="sources.list.d/datadog.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" && \
apt-get install -y datadog-agent && \
apt-get clean
RUN rm -r /usr/share/man
RUN rm -r /var/cache/apt
RUN rm -r /var/lib/apt/lists
RUN rm -r /usr/share/locale
RUN rm -r /var/log
RUN rm -r /usr/share/info
ADD conf.d/redisdb.yaml /etc/datadog-agent/conf.d/redisdb.yaml
ADD redis.conf /usr/local/etc/redis.conf
ADD collectd.conf /etc/collectd/collectd.conf
ADD entrypoint.sh /opt/entrypoint.sh
EXPOSE 6379
EXPOSE 16379
EXPOSE 6380
RUN ["chmod", "+x", "/opt/entrypoint.sh"]
ENTRYPOINT ["/opt/entrypoint.sh"]