forked from dbuxo/omd-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (28 loc) · 1.18 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
# Open Monitoring Distribution
## Version: 0.1
FROM phusion/baseimage
#MAINTAINER Gustavo Lichti <[email protected]>
MAINTAINER xforty technologies "xforty.com"
ENV DEBIAN_FRONTEND noninteractive
# Make sure package repository is up to date
RUN apt-get update
RUN apt-get upgrade -y
# Install OMD, see http://labs.consol.de/OMD/
RUN gpg --keyserver keys.gnupg.net --recv-keys F8C1CA08A57B9ED7
RUN gpg --armor --export F8C1CA08A57B9ED7 | apt-key add -
RUN echo "deb http://labs.consol.de/repo/stable/ubuntu trusty main" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y libpython2.7 omd locales tzdata
#Set timezone
RUN echo "America/New_York" > /etc/timezone; dpkg-reconfigure tzdata
#Set locale
RUN export LANGUAGE=en_US.UTF-8; export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; locale-gen en_US.UTF-8; dpkg-reconfigure locales
# Set up a default site
RUN omd create default
# We don't want TMPFS as it requires higher privileges
RUN omd config default set TMPFS off
# Accept connections on any IP address, since we get a random one
RUN omd config default set APACHE_TCP_ADDR 0.0.0.0
# Add watchdog script
ADD apache.sh /etc/service/apache/run
ADD omd.sh /etc/service/omd/run