-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
27 lines (22 loc) · 829 Bytes
/
Dockerfile
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
FROM ubuntu:16.04
LABEL Maintainer="Pedro Lobo <https://github.com/pslobo>"
LABEL Name="grok_exporter"
LABEL Version="0.2.5"
ENV GROK_ARCH="grok_exporter-0.2.5.linux-amd64"
ENV GROK_VERSION="v0.2.5"
RUN apt-get update -qqy \
&& apt-get upgrade -qqy \
&& apt-get install --no-install-recommends -qqy \
wget unzip ca-certificates \
&& update-ca-certificates \
&& wget https://github.com/fstab/grok_exporter/releases/download/$GROK_VERSION/$GROK_ARCH.zip \
&& unzip $GROK_ARCH.zip \
&& mv $GROK_ARCH /grok \
&& rm $GROK_ARCH.zip \
&& apt-get --autoremove purge -qqy \
wget unzip ca-certificates \
&& rm -fr /var/lib/apt/lists/*
RUN mkdir -p /etc/grok_exporter
RUN ln -sf /etc/grok_exporter/config.yml /grok/
WORKDIR /grok
CMD ["./grok_exporter", "-config", "/grok/config.yml"]