-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (28 loc) · 1.62 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
FROM nuancemobility/ubuntu-base:16.10
MAINTAINER sspcm <mobility-sspcm@nuance.com>
# Install Redis
RUN apt-get install -y redis-server
RUN apt-get install -y wget apt-transport-https
# Install Sensu
#RUN curl 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 && \
RUN wget -q https://sensu.global.ssl.fastly.net/apt/pubkey.gpg -O- | apt-key add - && \
echo "deb https://sensu.global.ssl.fastly.net/apt sensu main" > /etc/apt/sources.list.d/sensu.list && \
apt-get -y update && apt-get install -y --allow-unauthenticated sensu
# Install and configure WizardVan
RUN apt-get install -y git && \
git clone http://github.com/opower/sensu-metrics-relay.git && \
cp -R sensu-metrics-relay/lib/sensu/extensions/* /etc/sensu/extensions
#Install snmp utilities
RUN echo "deb http://archive.ubuntu.com/ubuntu trusty multiverse\n" >> /etc/apt/sources.list && \
echo "deb-src http://archive.ubuntu.com/ubuntu trusty multiverse\n" >> /etc/apt/sources.list && \
apt-get update && \
apt-get -y install libsnmp-base snmp-mibs-downloader snmp
# Install Sensu Plugins
RUN apt-get -y update && apt-get install -y ruby ruby-dev build-essential && \
gem install mail --no-ri --no-rdoc -v 2.5.4 && \
gem install json --no-ri --no-rdoc -v 1.8.3 && \
gem install sensu-plugin --no-ri --no-rdoc -v 1.2.0
VOLUME /etc/sensu/conf.d
VOLUME /etc/sensu/handlers
COPY supervisor /etc/supervisor/conf.d