Skip to content

ocurrent/ocurrent-observer

Repository files navigation

Observer

This repository contains an OCurrent pipeline that resolves the name, validates the certificates, tries to download from the website, and then posts the results to a Slack channel.

Building locally

opam switch create . 4.14.1 --deps-only -y
dune build

Authentication

Sign in to your GitHub Organzation, then go to Developer settings > OAuth Apps > New OAuth App

Next click Generate a new client secret

{ "client_id": "", "client_secret": "", "scopes": [ "user:email" ] }

# Running on a Raspberry PI

I am using an older Raspberry PI which needs an arm/v7 binary which can be built like this.

docker buildx build -t mtelvers/ocurrent-observer:latest --platform linux/arm/v7 .

On the PI itself, install the dependencies, extract the image and run it.

apt install libev-dev dnsutils graphviz
docker run --rm --entrypoint cat mtelvers/ocurrent-observer /usr/local/bin/ocurrent-observer > ocurrent-observer
chmod +x ocurrent-observer
sudo ./ocurrent-observer --port 80 --slack ./slack.secret www.ocaml.org,opam.ocaml.org,images.ci.ocaml.org,deploy.ci.ocaml.org,opam-repo.ci.ocaml.org

About

Systems health check using OCurrent

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published