A self-hosted server for receiving and viewing Gradle build scans.
docker run -p 8080:8080 -v build-scan-data:/data ghcr.io/lowkeylab/build-scan-server:latestAdd the Develocity plugin to your settings.gradle.kts:
plugins {
id("com.gradle.develocity") version "4.3.2"
}
develocity {
server = "http://localhost:8080"
buildScan {
publishing.onlyIf { true }
uploadInBackground = false
}
}./gradlew buildThe build scan will be uploaded to your server and viewable at http://localhost:8080.
docker pull ghcr.io/lowkeylab/build-scan-server:latest
docker run -p 8080:8080 -v build-scan-data:/data ghcr.io/lowkeylab/build-scan-server:latestThe server will be available at http://localhost:8080.
| Variable | Default | Description |
|---|---|---|
DATABASE_URL |
sqlite:///data/build_scans.db |
SQLite database path |
PORT |
8080 |
HTTP listen port |
Mount a volume at /data for persistent storage:
docker run -p 3000:3000 \
-e PORT=3000 \
-v build-scan-data:/data \
ghcr.io/lowkeylab/build-scan-server:latestbazel run //build-scan/server/src:load_image # loads as local/build-scan-server:latest
docker run -p 8080:8080 -v build-scan-data:/data local/build-scan-server:latest