1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/netdata/arm/Dockerfile

55 lines
1.6 KiB
Docker
Raw Normal View History

2017-05-21 17:37:03 +02:00
#
# Dockerfile for netdata-arm
#
FROM resin/rpi-raspbian:jessie
MAINTAINER EasyPi Software Foundation
ENV NETDATA_VER 1.6.0
ENV NETDATA_URL https://github.com/firehol/netdata/releases/download/v${NETDATA_VER}/netdata-${NETDATA_VER}.tar.gz
ENV NETDATA_DEB netdata_${NETDATA_VER}_armhf.deb
WORKDIR /usr/src
RUN set -xe \
&& apt-get update \
&& apt-get -y install autoconf \
autoconf-archive \
autogen \
automake \
curl \
debhelper \
dh-autoreconf \
dh-systemd \
fakeroot \
gcc \
libmnl-dev \
make \
pkg-config \
uuid-dev \
zlib1g-dev \
&& curl -sSL ${NETDATA_URL} | tar xz \
&& cd netdata-${NETDATA_VER} \
&& ln -s contrib/debian \
&& dpkg-buildpackage -us -uc -rfakeroot \
&& cd .. \
&& dpkg -i ${NETDATA_DEB} \
&& apt-get remove -y autoconf \
autoconf-archive \
autogen \
automake \
curl \
debhelper \
dh-autoreconf \
dh-systemd \
gcc \
make \
pkg-config \
&& rm -rf netdata-${NETDATA_VER} /var/lib/apt/lists/*
VOLUME /etc/netdata
EXPOSE 19999
CMD ["netdata", "-nd"]