Web interface for builder
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
Reynir Björnsson 46f93c28ea Merge pull request 'only show active jobs, fixes #162' (#176) from orphan-old-builds into main
Reviewed-on: #176
3 days ago
auth add explicit package dependencies 2 years ago
bin whitespace-cleanup 1 week ago
db auto-format 2 weeks ago
http_status_middleware Add http status metrics middleware 2 years ago
lib UI enhancement: all/active build modal 1 week ago
opamdiff take care of git pins, attempt 2 4 months ago
packaging whitespace cleanup in batch-viz.sh 3 weeks ago
test whitespace-cleanup 1 week ago
.gitignore .gitignore: Emacs files 2 years ago
.ocp-indent Remove trailing whitespace 2 years ago
CHANGES.md Prepare for initial public release 2 years ago
LICENSE.md debian packaging 2 years ago
README.md roburio -> robur-coop 3 weeks ago
builder-web.opam further CI fixes: require alcotest 1.2.0 (for check'), disable formatting (no .ocamlformat) 2 weeks ago
dune-project further CI fixes: require alcotest 1.2.0 (for check'), disable formatting (no .ocamlformat) 2 weeks ago

README.md

Builder-web - a web frontend for reproducible builds

Builder-web takes in submissions of builds, typically from builder, and displays the produced artifacts in a way that makes it easy to compare checksums and build status. Produced binaries can be downloaded and executed. builds.robur.coop itself runs builder-web.

Overview

Builder-web is a single binary web server using a sqlite3 database with versioned schemas. Finished builds from builder are uploaded to builder-web, stored and indexed in the database and presented in the web interface to the user. Users can:

  • Get an overview of jobs - a job is typically script or opam package that is run and builds an artifact,
  • Browse all builds of a job - each job may have multiple builds, that are executed periodically by builder
  • Browse individual build and download artifacts and build information for reproducing the same binary.
  • Compare two builds, observing the differences in used opam packages, environment variables, and system packages.
  • Search for the SHA-256 hash of a binary to view a build that resulted in that binary.

Installation

Installing from source can be done with opam: opam install builder-web.

We also provide reproducible binary packages.

Setup

Builder-web consists of a binary builder-web that runs a web server on port 3000 listening on all interfaces by default. These values can be changed with the --port and --host flags respectively. See builder-web --help for more information.

Service scripts for FreeBSD and systemd are provided.

The web server expects a sqlite3 database in its data directory. An empty database can be created with builder-db migrate.

Database migrations

The sqlite3 database builder-web uses contains versioning information. On every schema change the database schema version is updated, and migration and rollback scripts are provided. The tool for database migrations is builder-migrations. See the builder-migrations --help output for each migration for further details.

Less common workflows

Here are listed some less common but useful workflows:

Extracting builds from one server to another

This is useful for development on a separate machine that doesn't run the build jobs itself.

On the source server:

builder-db extract-build <build-hash> --dest <build-hash>.full

After copying the file over the destination server (you need a user first, see builder-db user-add --help):

curl --data-binary @<build-hash>.full http://<user>:<passwd>@localhost:<builder-web-port>/upload