-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Todd Campbell
committed
Apr 27, 2020
1 parent
5c9649b
commit 3d793fc
Showing
4 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM ubuntu:20.04 as builder | ||
|
||
ARG SENSU_GO_ASSET_NAME="monitoring-plugins-ubuntu2004" | ||
ARG SENSU_GO_ASSET_VERSION="2.2.0" | ||
ARG PLUGINS="check_http" | ||
|
||
ADD create-sensu-asset /usr/bin/create-sensu-asset | ||
|
||
WORKDIR / | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y build-essential curl libexpat1-dev openssl libssl-dev libz-dev snmp dnsutils procps && \ | ||
curl -s -L -O https://www.monitoring-plugins.org/download/monitoring-plugins-2.2.tar.gz && \ | ||
tar xzf monitoring-plugins-2.2.tar.gz && \ | ||
cd monitoring-plugins-2.2 && \ | ||
./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 / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters