forked from sensu/monitoring-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.amazon2
24 lines (18 loc) · 936 Bytes
/
Dockerfile.amazon2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM amazonlinux:2 as builder
ARG SENSU_GO_ASSET_NAME="monitoring-plugins-amazon2"
ARG SENSU_GO_ASSET_VERSION="2.11.0"
ARG PLUGINS="check_http"
ADD create-sensu-asset /usr/bin/create-sensu-asset
ADD revert-pr-1868-for-ancient-openssl.patch /revert-pr-1868-for-ancient-openssl.patch
WORKDIR /
RUN yum groupinstall -y "Development Tools" && \
yum install -y curl expat-devel openssl openssl-devel net-snmp-utils bind-utils which procps && \
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 && \
patch -R -p1 <../revert-pr-1868-for-ancient-openssl.patch && \
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 /