diff options
author | Lennart Weller <lhw@ring0.de> | 2016-09-05 08:27:26 +0000 |
---|---|---|
committer | Lennart Weller <lhw@ring0.de> | 2016-09-05 08:27:26 +0000 |
commit | 58d9525d7fcacffe52eff7282b7a888dd0dcc1d0 (patch) | |
tree | 251a805eb38d4d75b2a7f44c2cc22e7ea4849513 /docker-build.sh | |
parent | Fixes for service startup and extra config files (diff) | |
parent | Imported Upstream version 1.3.0+dfsg (diff) | |
download | netdata-58d9525d7fcacffe52eff7282b7a888dd0dcc1d0.tar.xz netdata-58d9525d7fcacffe52eff7282b7a888dd0dcc1d0.zip |
Merge tag 'upstream/1.3.0+dfsg'
Upstream version 1.3.0+dfsg
Diffstat (limited to 'docker-build.sh')
-rw-r--r-- | docker-build.sh | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/docker-build.sh b/docker-build.sh new file mode 100644 index 000000000..462276c32 --- /dev/null +++ b/docker-build.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +# author : titpetric +# original: https://github.com/titpetric/netdata + +set -e +DEBIAN_FRONTEND=noninteractive + +# some mirrors have issues, i skipped httpredir in favor of an eu mirror + +echo "deb http://ftp.nl.debian.org/debian/ jessie main" > /etc/apt/sources.list +echo "deb http://security.debian.org/debian-security jessie/updates main" >> /etc/apt/sources.list + +# install dependencies for build + +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 + +# remove build dependencies + +cd / +rm -rf /netdata.git + +dpkg -P zlib1g-dev uuid-dev libmnl-dev gcc make git autoconf autogen automake pkg-config +apt-get -y autoremove +apt-get clean +rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + + +# symlink access log and error log to stdout/stderr + +ln -sf /dev/stdout /var/log/netdata/access.log +ln -sf /dev/stdout /var/log/netdata/debug.log +ln -sf /dev/stderr /var/log/netdata/error.log |