2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-25 23:03:34 +01:00

update netdata

This commit is contained in:
kev
2017-05-22 15:20:46 +08:00
parent f84e0f0f5b
commit 37bc217e6e
3 changed files with 65 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
#
FROM alpine
MAINTAINER kev <noreply@easypi.pro>
MAINTAINER EasyPi Software Foundation
ENV NETDATA_VERSION 1.6.0
@@ -13,28 +13,32 @@ RUN set -xe \
bash \
build-base \
curl \
nodejs \
python \
libmnl \
libmnl-dev \
libuuid \
util-linux-dev \
zlib \
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 \
&& ./netdata-installer.sh --dont-start-it --dont-wait \
&& cd .. \
&& rm -rf netdata-$NETDATA_VERSION \
&& apk del autoconf \
automake \
build-base \
curl \
libmnl-dev \
util-linux-dev \
zlib-dev
VOLUME /etc/netdata
USER netdata
EXPOSE 19999
CMD ["netdata", "-D"]