Make sure you have ocb in version v0.81.0 and go v1.19 or higher installed.
- Get OCB
go install go.opentelemetry.io/collector/cmd/builder@v0.81.0
- Generate all the collector build files
make genotelcontribcol
- Build the opentelemetry collector and check the components (output is ./cmd/otelcontribcol)
make otelcontribcol
./bin/otelcontribcol_linux_amd64 components
- Compile a rpm using fpm
make rpm-package