-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
53 lines (40 loc) · 1.65 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
45
46
47
48
49
50
51
52
53
FROM ubuntu:14.04
MAINTAINER Denis Neuling ([email protected])
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install curl git-core -y
RUN curl --silent http://packages.icinga.org/icinga.key | apt-key add -
RUN echo 'deb http://packages.icinga.org/ubuntu icinga-trusty main' > /etc/apt/sources.list.d/icinga-main-trusty.list
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install \
nginx \
icingaweb2 \
icingaweb2-module-doc \
icingaweb2-module-monitoring \
ruby \
php5 \
php5-intl \
php5-imagick \
php5-gd \
php5-mysql \
php5-pgsql \
php5-curl \
php5-fpm \
mysql-client \
postgresql-client \
-y
RUN /usr/bin/icingacli setup config directory
RUN gem install tiller
ADD etc/tiller /etc/tiller
ADD etc/nginx/sites-enabled/default /etc/nginx/sites-enabled/default
RUN usermod -a -G icingaweb2 www-data;
RUN chmod -R 777 /usr/share/icingaweb2
RUN chown -R www-data. /usr/share/icingaweb2 /usr/share/php/
ADD usr/bin/icingaweb2-migrate /usr/bin/icingaweb2-migrate
RUN chmod +x /usr/bin/icingaweb2-migrate
RUN mkdir -p /etc/icingaweb2/enabledModules
RUN git clone https://github.com/Icinga/icingaweb2-module-director.git /usr/share/icingaweb2/modules/director && \
ln -s /usr/share/icingaweb2/modules/director /etc/icingaweb2/enabledModules/director
RUN ln -s /usr/share/icingaweb2/modules/monitoring /etc/icingaweb2/enabledModules/monitoring
RUN ln -s /usr/share/icingaweb2/modules/doc /etc/icingaweb2/enabledModules/doc
EXPOSE 80
WORKDIR /etc/icingaweb2
CMD tiller -d && cat $(find . -type f) && /usr/bin/icingaweb2-migrate && service php5-fpm start && nginx -g 'daemon off;'