Skip to content
ansibleformsPublic

About

Builder: builds the RTE images that AnsibleForms uses, and pushes them to a registry.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

AnsibleForms RTE Builder

CI License Docs

The builder of the RTE images an AnsibleForms controller defines, written in Go. It joins the controller, builds each image the Designer asks for with BuildKit, and pushes it to its registry.

The AnsibleForms Installer sets it up: run it on a Linux server and choose the Builder role.

curl -fsSL https://ansibleforms.com/install | sh

Features

The controller decides what to build; the builder builds it, and knows nothing else.

  • Joins like a Runner: dials the controller, with a join token or an admin's approval
  • Builds with BuildKit: a rootless buildkitd of its own, or the one BUILDKIT_HOST names
  • Pushes to any registry: the login comes sealed with each build and is never kept
  • amd64, arm64 or both: one multi-architecture image; the other one needs QEMU on the host
  • Signs and lists: cosign signatures, offline, and an SBOM pushed with the image
  • Live log: every line of a build reaches the controller's job, its secrets masked
  • Survives a drop: what the controller did not store yet is sent again after a reconnect
  • Needs nothing more: no database, no repositories, no playbooks
  • Image or binary: its image, or a static binary for Linux on each release, run as a service

How it works

The controller's Designer defines the RTE images; the builder builds each one as a job:

  • Defined in the Designer: it writes each runtime environment's Dockerfile
  • A build is a job: handed to an online builder, its log and result coming back as the job's
  • Sealed secrets: the registry login and the signing key come sealed for that builder only
  • Architectures: amd64, arm64 or all; the one that is not the host's is emulated with QEMU
  • Any release: it works with every controller that speaks the same socket contract

Documentation

The builder's reference lives on ansibleforms.com, with the rest of the AnsibleForms documentation:

Page What it covers
The installer Installing a builder with the installer's Builder role
Installing it The installer, Helm or by hand, and what each needs
Joining the controller A join token, or an admin's approval under Connections > Builders
Docker Running it by hand with docker run, or as a Docker Compose service
Podman Running it on Podman, rootful or rootless, and BUILDKIT_SNAPSHOTTER
amd64 and arm64 Building for the other architecture, with QEMU on the host
Kubernetes with Helm Installing it with the AnsibleForms chart's builder mode
Settings Every environment variable it reads, and its default
Troubleshooting What a failed build or a refused push usually means

Contributing

Contributions are welcome. Start with these files:

License

GPL-3.0.

About

Builder: builds the RTE images that AnsibleForms uses, and pushes them to a registry.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages