-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (23 loc) · 901 Bytes
/
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
FROM ubuntu:trusty
MAINTAINER Exequiel Pierotto <[email protected]>
# Install sensu
RUN \
apt-get update &&\
apt-get install wget -y && \
wget -qO - http://repos.sensuapp.org/apt/pubkey.gpg | apt-key add - && \
echo "deb http://repos.sensuapp.org/apt sensu main" > /etc/apt/sources.list.d/sensu.list && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y sensu
# Add the sensu-server config files
COPY files/server.json /etc/sensu/server.json
ADD files/conf.d /etc/sensu/conf.d/
ADD files/handlers /etc/sensu/handlers
ADD files/extensions /etc/sensu/extensions
ADD files/mutators /etc/sensu/mutators
ADD files/plugins /etc/sensu/plugins
# SSL sensu-server settings
ADD files/ssl /etc/sensu/ssl
RUN chgrp -R sensu /etc/sensu
# Sync with a local directory or a data volume container
#VOLUME /etc/sensu
CMD /opt/sensu/bin/sensu-server -d /etc/sensu/