Compare commits
4 Commits
master
...
0.1.1-alpi
Author | SHA1 | Date | |
---|---|---|---|
24e3922cb9 | |||
6d2360a723 | |||
afbd55f8e2 | |||
2e4dfe89b7 |
13
Dockerfile
13
Dockerfile
@ -1,11 +1,10 @@
|
|||||||
FROM ubuntu:18.04
|
FROM alpine:latest
|
||||||
RUN apt-get update && apt-get upgrade -y && apt-get install wget gnupg expect -y && \
|
RUN apk update && \
|
||||||
wget -O - https://packages.icinga.com/icinga.key | apt-key add -
|
apk add bash && \
|
||||||
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 && \
|
apk add icinga2 && \
|
||||||
apt-get update && apt-get install icinga2 -y && \
|
mkdir /run/icinga2 && chown icinga:icinga /run/icinga2 && \
|
||||||
mkdir /run/icinga2 && chown nagios:nagios /run/icinga2 && \
|
|
||||||
mkdir -p /var/lib/icinga2/certs && \
|
mkdir -p /var/lib/icinga2/certs && \
|
||||||
chown -R nagios:nagios /var/lib/icinga2/certs
|
chown -R icinga:icinga /var/lib/icinga2/certs
|
||||||
|
|
||||||
COPY create-satellite.sh /create-satellite.sh
|
COPY create-satellite.sh /create-satellite.sh
|
||||||
COPY run-icinga.sh /run-icinga.sh
|
COPY run-icinga.sh /run-icinga.sh
|
||||||
|
@ -53,3 +53,11 @@ services:
|
|||||||
- DISABLE_CONFD=y
|
- DISABLE_CONFD=y
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Images
|
||||||
|
There are two available images for you to choose from. The default one (0.*n*) is based on
|
||||||
|
Debian 10, with Icinga2 from Icingas official repository. The other image (0.*n*-alpine) is
|
||||||
|
based on Alpine latest, with Icinga2 from Alpines repository. The Alpine image is much
|
||||||
|
smaller in size.
|
||||||
|
|
||||||
|
> **Note:** Version 0.1-alpine uses Alpine 3.11. Version 0.1.1-alpine and up uses Alpine
|
||||||
|
> latest.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user