Skip to content

Commit 53a3604

Browse files
authored
Merge pull request #3 from rklos/chore/upgrade-netdata
Upgrade Netdata to the latest version
2 parents e05bfbf + 05eb7e4 commit 53a3604

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

build_and_push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
MY_IMAGE_NAME="caprover/netdata"
4-
NETDATA_VERSION="v1.8.0"
4+
NETDATA_VERSION="v1.34.1"
55

66
# ensure you're not running it on local machine
77
if [ -z "$CI" ] || [ -z "$GITHUB_REF" ]; then

scripts/build.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ echo "deb http://ftp.nl.debian.org/debian/ stretch main" > /etc/apt/sources.list
88
echo "deb http://security.debian.org/debian-security stretch/updates main" >> /etc/apt/sources.list
99

1010
# install dependencies for build
11+
# source: https://learn.netdata.cloud/docs/agent/packaging/installer/methods/manual
1112

1213
apt-get -qq update
13-
apt-get -y install zlib1g-dev uuid-dev libmnl-dev gcc make curl git autoconf autogen automake pkg-config netcat-openbsd jq libuv1-dev liblz4-dev libjudy-dev libssl-dev
14+
apt-get -y install zlib1g-dev uuid-dev libmnl-dev gcc make curl git autoconf autogen automake pkg-config netcat-openbsd jq libuv1-dev liblz4-dev libjudy-dev libssl-dev cmake libelf-dev libprotobuf-dev protobuf-compiler g++
1415
apt-get -y install autoconf-archive lm-sensors nodejs python python-mysqldb python-yaml libjudydebian1 libuv1 liblz4-1 openssl
1516
apt-get -y install msmtp msmtp-mta apcupsd fping
1617

@@ -26,9 +27,13 @@ else
2627
echo "No tag, using master"
2728
fi
2829

30+
# fix for https://github.com/netdata/netdata/issues/11652
31+
32+
git submodule update --init --recursive
33+
2934
# use the provided installer
3035

31-
./netdata-installer.sh --dont-wait --dont-start-it
36+
./netdata-installer.sh --dont-wait --dont-start-it --disable-telemetry
3237

3338
# removed hack on 2017/1/3
3439
#chown root:root /usr/libexec/netdata/plugins.d/apps.plugin
@@ -39,7 +44,7 @@ fi
3944
cd /
4045
rm -rf /netdata.git
4146

42-
dpkg -P zlib1g-dev uuid-dev libmnl-dev gcc make git autoconf autogen automake pkg-config libuv1-dev liblz4-dev libjudy-dev libssl-dev
47+
dpkg -P zlib1g-dev uuid-dev libmnl-dev make git autoconf autogen automake pkg-config libuv1-dev liblz4-dev libjudy-dev libssl-dev cmake libelf-dev libprotobuf-dev protobuf-compiler g++
4348
apt-get -y autoremove
4449
apt-get clean
4550
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

0 commit comments

Comments
 (0)