mirror of
https://github.com/Icinga/docker-icinga2.git
synced 2025-11-08 10:51:03 +01:00
parent
d2245eee94
commit
b9f24b7fe3
@ -3,6 +3,8 @@ SHELL ["/bin/bash", "-exo", "pipefail", "-c"]
|
||||
|
||||
RUN git clone --bare https://github.com/lausser/check_mssql_health.git ;\
|
||||
git -C check_mssql_health.git archive --prefix=check_mssql_health/ 747af4c3c261790341da164b58d84db9c7fa5480 |tar -x ;\
|
||||
git clone --bare https://github.com/lausser/check_nwc_health.git ;\
|
||||
git -C check_nwc_health.git archive --prefix=check_nwc_health/ a5295475c9bbd6df9fe7432347f7c5aba16b49df |tar -x ;\
|
||||
git clone --bare https://github.com/bucardo/check_postgres.git ;\
|
||||
git -C check_postgres.git archive --prefix=check_postgres/ 58de936fdfe4073413340cbd9061aa69099f1680 |tar -x ;\
|
||||
rm -rf *.git
|
||||
@ -18,6 +20,7 @@ RUN apt-get update ;\
|
||||
rm -vrf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=clone /check_mssql_health /check_mssql_health
|
||||
COPY --from=clone /check_nwc_health /check_nwc_health
|
||||
COPY --from=clone /check_postgres /check_postgres
|
||||
|
||||
RUN cd /check_mssql_health ;\
|
||||
@ -28,6 +31,13 @@ RUN cd /check_mssql_health ;\
|
||||
make ;\
|
||||
make install "DESTDIR=$(pwd)/bin"
|
||||
|
||||
RUN cd /check_nwc_health ;\
|
||||
mkdir bin ;\
|
||||
autoreconf ;\
|
||||
./configure --libexecdir=/usr/lib/nagios/plugins ;\
|
||||
make ;\
|
||||
make install "DESTDIR=$(pwd)/bin"
|
||||
|
||||
RUN cd /check_postgres ;\
|
||||
mkdir bin ;\
|
||||
perl Makefile.PL INSTALLSITESCRIPT=/usr/lib/nagios/plugins ;\
|
||||
@ -42,4 +52,5 @@ RUN ["/bin/bash", "-exo", "pipefail", "-c", "export DEBIAN_FRONTEND=noninteracti
|
||||
RUN ["adduser", "--system", "--group", "--home", "/var/lib/icinga2", "--disabled-login", "--force-badname", "--no-create-home", "icinga"]
|
||||
|
||||
COPY --from=build /check_mssql_health/bin/ /
|
||||
COPY --from=build /check_nwc_health/bin/ /
|
||||
COPY --from=build /check_postgres/bin/ /
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user