More and better variables, and general clean-up

This commit is contained in:
2020-04-25 19:37:46 +02:00
parent 6b24c3daac
commit ae8244fde7
5 changed files with 86 additions and 20 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM ubuntu:18.04
RUN apt-get update && apt-get upgrade -y && apt-get install wget gnupg expect -y && \
wget -O - https://packages.icinga.com/icinga.key | apt-key add -
RUN printf "deb http://packages.icinga.com/ubuntu icinga-bionic main\ndeb-src http://packages.icinga.com/ubuntu icinga-bionic main" > /etc/apt/sources.list.d/icinga2.list && \
apt-get update && apt-get install icinga2 -y && \
mkdir /run/icinga2 && chown nagios:nagios /run/icinga2 && \
mkdir -p /var/lib/icinga2/certs && \
chown -R nagios:nagios /var/lib/icinga2/certs
COPY create-satellite.sh /create-satellite.sh
COPY run-icinga.sh /run-icinga.sh
RUN chmod +x /create-satellite.sh ; chmod +x /run-icinga.sh
ENTRYPOINT ["/run-icinga.sh"]