forked from sensu/monitoring-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.rocky9
26 lines (20 loc) · 925 Bytes
/
Dockerfile.rocky9
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
FROM rockylinux:9 as builder
ARG SENSU_GO_ASSET_NAME="monitoring-plugins-rocky9"
ARG SENSU_GO_ASSET_VERSION="2.11.0"
ARG PLUGINS="check_http"
ADD create-sensu-asset /usr/bin/create-sensu-asset
WORKDIR /
RUN rm -rf /var/cache/dnf
RUN dnf -y --disablerepo '*' --enablerepo=extras
RUN dnf -y distro-sync
RUN dnf -y upgrade && \
dnf groupinstall -y "Development Tools" && \
dnf install -y --allowerasing curl expat-devel openssl openssl-devel net-snmp-utils bind-utils which procps iputils && \
curl -s -L -O https://www.monitoring-plugins.org/download/monitoring-plugins-2.3.5.tar.gz && \
tar xzf monitoring-plugins-2.3.5.tar.gz && \
cd monitoring-plugins-2.3.5 && \
./configure --prefix=/usr --libexecdir=/usr/lib/monitoring-plugins && \
make && \
make install
WORKDIR /usr/lib/monitoring-plugins/
RUN create-sensu-asset -a $SENSU_GO_ASSET_NAME -b $PLUGINS -v $SENSU_GO_ASSET_VERSION -o /