ipmi_exporter/contrib/rpm
Gabriele Iannetti b72f43d24f Refactor rpm build process
* Move rpm build files to contrib/rpm/ directory structure
* Update top level README.md for referencing to contrib/rpm/README.md for rpm build
2022-12-02 14:19:36 +01:00
..
config Refactor rpm build process 2022-12-02 14:19:36 +01:00
docker Refactor rpm build process 2022-12-02 14:19:36 +01:00
sudoers Refactor rpm build process 2022-12-02 14:19:36 +01:00
systemd Refactor rpm build process 2022-12-02 14:19:36 +01:00
build.sh Refactor rpm build process 2022-12-02 14:19:36 +01:00
prometheus-ipmi-exporter.spec Refactor rpm build process 2022-12-02 14:19:36 +01:00
README.md Refactor rpm build process 2022-12-02 14:19:36 +01:00

Building a RPM Package

The RPM package build targets to run the exporter locally as Prometheus user with sudo permissions to expose most metrics.

For building a RPM package a build script and Docker build container are available.

NOTE:

The build script and the Docker build image must be executed from the project base directory!

CentOS with rpmbuild

A Build script is located in contrib/rpm/build.sh to be executed on a CentOS-based host with rpmbuild tool.

The RPM package will be available under $HOME/rpmbuild/.

Docker Build Container

A Docker build container is provided for CentOS7.

sudo docker build -t centos7_rpmbuild_ipmi_exporter -f contrib/rpm/docker/Dockerfile-centos7 .
sudo docker run -v $PWD/contrib/rpm/build:/outdir -it centos7_rpmbuild_ipmi_exporter

The RPM package will be available under contrib/rpm/build/.