Skip to content

GetPageSpeed/monit-rpm

Repository files navigation

Latest Monit on CentOS/RHEL 7+ (8..., etc.)

Build Status

Install latest Monit on CentOS using the following commands:

sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm
sudo yum -y install monit

Background

When I noticed that Monit in EPEL repository has not been updated in a year, I thought of a way to have most recent version at all times.

This repository contains spec file from upstream and rebuilds latest Monit version onto COPR, GetPageSpeed Repository and PackageCloud.

Technical

This git repository is a great sample of deployment automation using CircleCI (deploy to GetPageSpeed) and Travis (test status and deploy to PackageCloud). Those working configs can be found in .circleci and .travis.yml, respectively.

  • Travis verifies that the SRPM can be built successfully and pushes the built package onto PackageCloud.
  • COPR is set to fetch the .spec file from here and builds SRPM / RPM on its own.
  • CircleCi tests SRPM build-ability and builds complete RPM and pushes that onto GetPageSpeed repo.

Now as to how we know when a new version of Monit is released: that's done with a special script that basically checks BitBucket repository of Monit for recent releases, then updates and pushes the .spec file.