]> arthur.barton.de Git - netdata.git/commitdiff
Do not reclone the current project from github, as it's already here
authorBalthazar Rouberol <balthazar.rouberol@corp.ovh.com>
Tue, 20 Sep 2016 06:57:25 +0000 (06:57 +0000)
committerBalthazar Rouberol <balthazar.rouberol@corp.ovh.com>
Tue, 20 Sep 2016 07:01:59 +0000 (07:01 +0000)
Dockerfile
docker-build.sh

index 955befb54977971aa0c83f42e459c05e38d4fe2c..5a123fc8d7576b620928ffdad1528d1741178a27 100644 (file)
@@ -3,9 +3,9 @@
 
 FROM debian:jessie
 
-ADD docker-build.sh /docker-build.sh
+ADD . /netdata.git
 
-RUN chmod +x /docker-build.sh && sync && sleep 1 && /docker-build.sh
+RUN cd ./netdata.git && chmod +x ./docker-build.sh && sync && sleep 1 && ./docker-build.sh
 
 WORKDIR /
 
index 462276c32a2a4ddfb8a836b79aa54e42ca69e35c..1112ccb622b66accb815db497a1382344991590e 100644 (file)
@@ -17,11 +17,6 @@ apt-get -qq update
 apt-get -y install zlib1g-dev uuid-dev libmnl-dev gcc make curl git autoconf autogen automake pkg-config netcat-openbsd jq
 apt-get -y install autoconf-archive lm-sensors nodejs python python-mysqldb python-yaml
 
-# fetch netdata
-
-git clone https://github.com/firehol/netdata.git /netdata.git --depth=1
-cd /netdata.git
-
 # use the provided installer
 
 ./netdata-installer.sh --dont-wait --dont-start-it