A collection of scripts, config files, configurations and Prometheus exporters used in Carbonio.
- Docker or Podman installed
- Make
# Build all packages for Ubuntu 22.04
make build TARGET=ubuntu-jammy
# Build all packages for Rocky Linux 9
make build TARGET=rocky-9
# Build a single package
make build PACKAGE=alertmanager TARGET=ubuntu-jammyFor faster iterations, use build-debug to enter a container with yap prepare
already done. You can then rebuild packages repeatedly without paying the
preparation cost each time:
make build-debug TARGET=ubuntu-jammyOnce inside the container:
# Build all packages
yap build ubuntu-jammy /project
# Build only one package
yap build --from alertmanager --to alertmanager ubuntu-jammy /project| Method | Time |
|---|---|
| CI build | ~8m |
make build (full, local) |
~1m 20s |
yap build inside make build-debug (single package) |
~50s |
ubuntu-jammy- Ubuntu 22.04 LTSubuntu-noble- Ubuntu 24.04 LTSrocky-8- Rocky Linux 8rocky-9- Rocky Linux 9
You can customize the build by setting environment variables:
# Use a specific container runtime
make build TARGET=ubuntu-jammy CONTAINER_RUNTIME=docker
# Use a different output directory
make build TARGET=rocky-9 OUTPUT_DIR=./my-packagesRun make help for the full list of targets and options.
All contributions are accepted! Please refer to the CONTRIBUTING file (if present in this repository) for more detail on how to contribute. If the repository has a Code of Conduct, we kindly ask to follow that as well.