RTE images

The three published RTE images, and an RTE of your own with the collections and libraries your playbooks use

  1. The RTE images
  2. Build your own RTE
  3. Build it in the Designer
  4. The contract

The RTE images

The RTE is published in three layers, each built on the one before, with the same tags as the controller (see Image tags):

Image What is in it Use it
ghcr.io/ansibleforms/ansibleforms-rte-base Node.js and the AnsibleForms server, git, ssh and sshpass. No python and no ansible, so it runs no playbook by itself To build an RTE with your own python and ansible versions
ghcr.io/ansibleforms/ansibleforms-rte-core The base, plus python 3.14, ansible-core and a few common libraries (jmespath, netaddr, requests, paramiko). No collections To build a smaller RTE with only the collections and libraries your playbooks use
ghcr.io/ansibleforms/ansibleforms-rte-full The core, plus the ansible package on the same ansible-core, and what the AnsibleForms 6.5 image had: the NetApp, AWS and community collections, pandas, pyvmomi, boto3, the mariadb client, ytt and a few os tools The default. Run it as it is: playbooks from 6.5 find what they used

Like the controller image, every layer runs as the user node (uid 1000), and the playbooks run as that user too.

From 7.6.0 every layer is published for linux/amd64 and linux/arm64 under the same tag. An RTE you build on one is built for the architecture of the machine that builds it: for arm64 hosts, build it on one, or with docker buildx build --platform linux/arm64.


Build your own RTE

Build on ansibleforms-rte-core and add the collections and python libraries your playbooks use, as this NetApp one does:

FROM ghcr.io/ansibleforms/ansibleforms-rte-core:7
RUN ansible-galaxy collection install netapp.ontap -p /usr/share/ansible/collections \
 && pip install --no-cache-dir netapp-lib netapp-ontap

The python environment and the collections folder belong to node, so these installs need no root. A layer that installs os packages switches to USER root for them and back to USER node at the end. To bring your own python and ansible, build on ansibleforms-rte-base instead, which has neither.

Keep the image on the controller’s release: :7 follows the controller’s :7. Collections and roles can also be mounted instead of baked in, at /etc/ansible/collections and /etc/ansible/roles. Then no rebuild is needed per change, but what runs depends on that volume; python libraries always go into the image. Baking everything in is reproducible and starts fast, which makes it the way for production.

The Designer can also define such an image and build it for you: see Build it in the Designer.


Build it in the Designer

From 7.9.0 you describe a runtime environment in the Designer; a builder builds its image, pushes and signs it.

  1. Give a repository the Runtime environments usage (Settings > Repositories); it holds the definitions.
  2. In the Designer, open Runtime environments and click New: fill it in on the Visual tab, or write it on the YAML tab.
  3. Save, then Push to commit it to the repository, and Build: the build is a job on the Jobs page, its log live.

Each runtime environment is a folder of its own in the repository, named after it, that holds only its definition:

rte-netapp/
  rte.yaml

The Dockerfile, ansible.cfg and the requirements files are written again for every build, from the definition and the app’s release, so they never go stale in the repository. The Files tab shows them as the builder gets them.

runner_rte:
  - name: rte-netapp
    description: NetApp playbooks of the storage team
    arch: all
    python: "3.15"
    ansible_core: "2.22"
    ansible_collections:
      - name: netapp.ontap
        version: 23.1.0
    python_packages:
      - netapp-lib
    os_packages:
      - sshpass
    registry:
      name: ghcr
      path: af/rte-netapp
      tag: app
    sbom: true
    sign:
      credential: cosign-key

Every key but the name can be left out; the YAML tab’s toolbar sets each part in a dialog.

Key What it is
name The runtime environment’s name, its folder’s and its image’s: lower case letters, digits, dots, dashes and underscores
arch all, one image for amd64 and arm64 as the published ones, or amd64 or arm64 alone; all when left out. An architecture other than the builder host’s needs QEMU on that host
python The python the image runs, from 3.11 to 3.15; 3.15 when left out
ansible_core An ansible-core release (2.22) or version (2.22.0) that runs on that python; the newest one that does when left out
ansible_collections The collections, each its name (namespace.name) and an optional version; the latest when left out. What each collection needs itself, its requirements.txt and bindep.txt (or its meta/execution-environment.yml), is installed with it, as ansible-builder does
python_packages Python packages, as lines of a requirements.txt
os_packages Debian 13 (trixie) packages
registry name: a registry of Connections > Registries, which holds its address, its TLS check and its login; path: the image’s path in it, its name when left out; tag: app, the app’s release (7.9.0), so a rebuild follows each upgrade, or a tag of your own
sbom true attaches a software bill of materials to the image
sign credential: a Signing key credential, with which the builder signs the image with cosign 3; check it with cosign 3’s cosign verify --key <public key> (cosign 2 does not read its signatures)

Every runtime environment is built from ansibleforms-rte-base of the app’s release, so one tagged app whose image was built for an older release is shown as such on the Runtime environments page, with Rebuild them.

A form runs its jobs in a runtime environment with a successful build by naming it, executionEnvironment: rte-netapp, on a runner that runs each job in a container of its own (see Its runtime environment).


The contract

What the controller and an RTE must share is their contract, a number both report. An RTE of an older release keeps working with a newer controller as long as both speak the same contract; when a release changes it, its release notes say that RTEs must be updated. Each mode has its own:

Mode Contract On a mismatch
Outbound, Inbound 3, new in 7.3.0 The controller closes the RTE’s socket with the code 4409 and logs RTE ‘<name>’ speaks contract <n>, this app (<release>) contract 3: refused. An outbound RTE logs the controller speaks another contract (an upgrade in progress?): dialing again in 60 seconds. A job sent with another contract is refused
Database (deprecated) 2, since 7.0.0 The RTE refuses the controller’s jobs

Test connection on the runner says which contract the RTE speaks and which one the controller needs (see Test connection), and the Runners row of the Status page runs the same check.