summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBalthazar Rouberol <balthazar.rouberol@corp.ovh.com>2016-09-20 06:57:25 +0000
committerBalthazar Rouberol <balthazar.rouberol@corp.ovh.com>2016-09-20 07:01:59 +0000
commitf4d5d6b4c833789283626ec63399000c8b6e21ea (patch)
tree73778310e4ff6c41cd4e545f1fde2e6a70ee1bea
parente57e106052221ad1892d72d65f3419c951df24e2 (diff)
Do not reclone the current project from github, as it's already here
-rw-r--r--Dockerfile4
-rw-r--r--docker-build.sh5
2 files changed, 2 insertions, 7 deletions
diff --git a/Dockerfile b/Dockerfile
index 955befb549..5a123fc8d7 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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 /
diff --git a/docker-build.sh b/docker-build.sh
index 462276c32a..1112ccb622 100644
--- a/docker-build.sh
+++ b/docker-build.sh
@@ -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