Last active
April 2, 2016 16:09
-
-
Save jpotier/bf41646694235e3e5b5af5cb25d5a660 to your computer and use it in GitHub Desktop.
Test netdata in a alpine container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
apk --update add zlib bash build-base zlib-dev autoconf automake iproute2 gdb curl | |
addgroup -S netdata | |
adduser -S -G netdata -s /sbin/nologin -h / netdata | |
mkdir /workdir && cd /workdir | |
cp -r /data/netdata.git ./ | |
cd netdata.git | |
CFLAGS="-O1 -ggdb -Wall -Wextra" ./netdata-installer.sh --dont-wait | |
sleep 1 | |
echo "[global]" > /etc/netdata/netdata.conf | |
echo " debug flags = 0x10000000" >> /etc/netdata/netdata.conf | |
/usr/sbin/netdata -u root -ch /host -nd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment