@cryptotaxi247 / netdata-1 / commits / dd2117999

Add an armv7hf docker build

Justin Dray ✌️ 🙌 committed Nov 5, 2017 at 17:01 UTC dd2117999289a22e041c469507fffe3496e4cf01
3 files changed +22 -3
Dockerfile
+3
@@ -5,6 +5,9 @@ FROM debian:jessie
5
6 ADD . /netdata.git
7
8 +RUN echo "deb http://ftp.nl.debian.org/debian/ jessie main" > /etc/apt/sources.list
9 +RUN echo "deb http://security.debian.org/debian-security jessie/updates main" >> /etc/apt/sources.list
10 +
11 RUN cd ./netdata.git && chmod +x ./docker-build.sh && sync && sleep 1 && ./docker-build.sh
12
13 WORKDIR /
Dockerfile.armv7hf new
+19
@@ -0,0 +1,19 @@
1 +# author : titpetric
2 +# original: https://github.com/titpetric/netdata
3 +
4 +FROM resin/armv7hf-debian:jessie
5 +
6 +RUN [ "cross-build-start"]
7 +
8 +ADD . /netdata.git
9 +
10 +RUN cd ./netdata.git && chmod +x ./docker-build.sh && sync && sleep 1 && ./docker-build.sh
11 +
12 +WORKDIR /
13 +
14 +ENV NETDATA_PORT 19999
15 +EXPOSE $NETDATA_PORT
16 +
17 +CMD /usr/sbin/netdata -D -s /host -p ${NETDATA_PORT}
18 +
19 +RUN [ "cross-build-end"]
docker-build.sh
-3
@@ -8,9 +8,6 @@ DEBIAN_FRONTEND=noninteractive
8
9 # some mirrors have issues, i skipped httpredir in favor of an eu mirror
10
11 -echo "deb http://ftp.nl.debian.org/debian/ jessie main" > /etc/apt/sources.list
12 -echo "deb http://security.debian.org/debian-security jessie/updates main" >> /etc/apt/sources.list
13 -
11 # install dependencies for build
12
13 apt-get -qq update