From 8b71cac38be18a93fc888e6205a810edd5804783 Mon Sep 17 00:00:00 2001 From: Dylan Garvis Date: Thu, 22 Jan 2026 22:16:36 -0500 Subject: [PATCH] docs: document docker and make builds --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index 7e86227..ae3933e 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,36 @@ Prometheus Spigot exposes server metrics at a configurable HTTP endpoint for Pro 2. Copy the JAR from `build/libs/` into your server `plugins/` directory. 3. Start the server once to generate `plugins/PrometheusSpigot/config.yml` and token. +### Build with Docker + +If you do not have Gradle installed, you can build using Docker: + +```bash +docker build -t prometheus-spigot-build . +``` + +Then extract the jar from the image: + +```bash +docker create --name prometheus-spigot-build prometheus-spigot-build +docker cp prometheus-spigot-build:/workspace/build/libs ./build/libs +docker rm prometheus-spigot-build +``` + +### Build with Make + +If you prefer Make targets: + +```bash +make build +``` + +Docker build + extract: + +```bash +make docker-jar +``` + ## Configure `config.yml` (defaults shown):