2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 13:23:02 +01:00

add netdata

This commit is contained in:
kev
2016-06-21 09:23:08 +08:00
parent 8af2695ecd
commit f481ed97c3
5 changed files with 55 additions and 1 deletions

38
netdata/Dockerfile Normal file
View File

@@ -0,0 +1,38 @@
#
# Dockerfile for netdata
#
FROM alpine
MAINTAINER kev <noreply@easypi.info>
ENV NETDATA_VERSION 1.2.0
RUN set -xe \
&& apk add --no-cache autoconf \
automake \
bash \
build-base \
curl \
libmnl \
libmnl-dev \
libuuid \
util-linux-dev \
zlib-dev \
&& addgroup -g 1000 netdata \
&& adduser -D -H -u 1000 -G netdata netdata \
&& curl -sSL https://github.com/firehol/netdata/releases/download/v$NETDATA_VERSION/netdata-$NETDATA_VERSION.tar.gz | tar xz \
&& cd netdata-$NETDATA_VERSION \
&& ./netdata-installer.sh --dont-wait \
&& cd .. \
&& rm -rf netdata-$NETDATA_VERSION \
&& apk del autoconf \
automake \
build-base \
curl \
libmnl-dev \
util-linux-dev \
zlib-dev
EXPOSE 19999
CMD ["netdata", "-nd"]