This will build RPMs for netdata.
If you are only interested by the installation of netdata on your systems using RPM, follow this quick steps to setup the Yum/Dnf repository:
# For RHEL 7.x
$ cat <<'EOF' | sudo tee /etc/yum.repos.d/bigbrozer_netdata.repo
[bigbrozer_netdata]
name=bigbrozer_netdata
baseurl=https://packagecloud.io/bigbrozer/netdata/el/7/$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/bigbrozer/netdata/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
EOF
# For RHEL 6.x, the package is not yet available...
Update Yum/Dnf cache:
$ sudo yum makecache fast
$ sudo dnf makecache fast
Install package:
$ sudo yum install netdata
$ sudo dnf install netdata
# For building image for RHEL 7 (default)
docker build -t bigbrozer/netdata-rpm-builder:7 .
# For building image for RHEL 6
docker build --build-arg RELEASE=6 -t bigbrozer/netdata-rpm-builder:6 .
Currently supported:
# Build RPMs for RHEL 7
./run.py -r 7
# Build RPMs for RHEL 6
./run.py -r 6
Manual builds:
# Build RPMs for RHEL 7
docker run \
-t \
--rm \
-v $(pwd)/dist:/build/dist \
bigbrozer/netdata-rpm-builder:7
# Build RPMs for RHEL 6
docker run \
-t \
--rm \
-v $(pwd)/dist:/build/dist \
bigbrozer/netdata-rpm-builder:6
Resulted RPMs are located into the dist/
folder.