forked from athieriot/docker-elastic-metricbeat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (17 loc) · 804 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
FROM frolvlad/alpine-glibc
MAINTAINER Aurélien Thieriot <aurelien@scalar.is>
ENV METRICBEAT_VERSION=5.2.2
RUN apk add --no-cache \
ca-certificates \
curl
RUN curl -L -O https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-${METRICBEAT_VERSION}-linux-x86_64.tar.gz && \
tar -xvvf metricbeat-${METRICBEAT_VERSION}-linux-x86_64.tar.gz && \
mv metricbeat-${METRICBEAT_VERSION}-linux-x86_64/ /metricbeat && \
mv /metricbeat/metricbeat.yml /metricbeat/metricbeat.example.yml && \
mv /metricbeat/metricbeat /bin/metricbeat && \
chmod +x /bin/metricbeat && \
mkdir -p /metricbeat/config /metricbeat/data && \
rm metricbeat-${METRICBEAT_VERSION}-linux-x86_64.tar.gz
WORKDIR /metricbeat
ADD start.sh /metricbeat/start.sh
ENTRYPOINT /metricbeat/start.sh