forked from bodsch/docker-icinga2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.satellite
55 lines (41 loc) · 1.42 KB
/
Dockerfile.satellite
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
54
55
FROM debian:9-slim
ARG BUILD_DATE
ARG BUILD_VERSION
ARG ICINGA2_VERSION
ENV \
TERM=xterm \
DEBIAN_FRONTEND=noninteractive \
TZ='Europe/Berlin'
EXPOSE 5665
# ---------------------------------------------------------------------------------------
ADD build /build
RUN \
export ICINGA2_TYPE=Satellite && \
/build/installer.sh && \
rm -rf \
/build
COPY rootfs/ /
WORKDIR "/etc/icinga2"
VOLUME [ "/etc/icinga2", "/var/lib/icinga2" ]
HEALTHCHECK \
--interval=5s \
--timeout=2s \
--retries=12 \
--start-period=10s \
CMD ps ax | grep -v grep | grep -c $(cat /run/icinga2/icinga2.pid) || exit 1
CMD [ "/init/run.sh" ]
# ---------------------------------------------------------------------------------------
LABEL \
version="${BUILD_VERSION}" \
maintainer="Bodo Schulz <[email protected]>" \
org.label-schema.build-date=${BUILD_DATE} \
org.label-schema.name="Icinga2 Docker Image" \
org.label-schema.description="Inofficial Icinga2 Docker Image" \
org.label-schema.url="https://www.icinga.org/" \
org.label-schema.vcs-url="https://github.com/bodsch/docker-icinga2" \
org.label-schema.vendor="Bodo Schulz" \
org.label-schema.version=${ICINGA2_VERSION} \
org.label-schema.schema-version="1.0" \
com.microscaling.docker.dockerfile="/Dockerfile" \
com.microscaling.license="GNU General Public License v3.0"
# ---------------------------------------------------------------------------------------