Skip to content

Commit

Permalink
install modules, director and make fixes in one layer
Browse files Browse the repository at this point in the history
  • Loading branch information
bebehei committed Jan 6, 2017
1 parent 5f89f82 commit ee4e300
Show file tree
Hide file tree
Showing 15 changed files with 9 additions and 11 deletions.
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ RUN wget --quiet -O - https://packages.icinga.org/icinga.key \

ADD content/ /

RUN mv /etc/icingaweb2/ /etc/icingaweb2.dist \
# Temporary hack to get icingaweb2 modules via git
RUN wget -q --no-cookies -O - "https://github.com/Icinga/icingaweb2/archive/${GITREF_ICINGAWEB2}.tar.gz" \
| tar xz --strip-components=2 --directory=/etc/icingaweb2/modules -f - icingaweb2-${GITREF_ICINGAWEB2}/modules/monitoring icingaweb2-${GITREF_ICINGAWEB2}/modules/doc \
# Icinga Director
&& wget -q --no-cookies -O - "https://github.com/Icinga/icingaweb2-module-director/archive/${GITREF_DIRECTOR}.tar.gz" \
| tar xz --strip-components=1 --directory=/etc/icingaweb2/modules/director --exclude=.gitignore -f - \
&& icingacli module enable director \
# Final fixes
&& mv /etc/icingaweb2/ /etc/icingaweb2.dist \
&& mkdir /etc/icingaweb2 \
&& mv /etc/icinga2/ /etc/icinga2.dist \
&& mkdir /etc/icinga2 \
Expand All @@ -61,14 +69,6 @@ RUN mv /etc/icingaweb2/ /etc/icingaweb2.dist \
/bin/ping6 \
/usr/lib/nagios/plugins/check_icmp

# Temporary hack to get icingaweb2 modules via git
RUN wget -q --no-cookies -O - "https://github.com/Icinga/icingaweb2/archive/${GITREF_ICINGAWEB2}.tar.gz" \
| tar xz --strip-components=2 --directory=/etc/icingaweb2.dist/modules -f - icingaweb2-${GITREF_ICINGAWEB2}/modules/monitoring icingaweb2-${GITREF_ICINGAWEB2}/modules/doc

# Icinga Director
RUN wget -q --no-cookies -O - "https://github.com/Icinga/icingaweb2-module-director/archive/${GITREF_DIRECTOR}.tar.gz" \
| tar xz --strip-components=1 --directory=/etc/icingaweb2.dist/modules/director --exclude=.gitignore -f -

EXPOSE 80 443 5665

# Initialize and run Supervisor
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions content/opt/setup/icingaweb2-director
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/bash

icingacli module enable director

# director
mysql <<-END
CREATE DATABASE IF NOT EXISTS director CHARACTER SET 'utf8';
Expand Down

0 comments on commit ee4e300

Please sign in to comment.