Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ The setup is a compose file, its settings and the data the containers start with

| Path | Holds |
|---|---|
| `docker-compose.yml` | the AnsibleForms, RTE and MySQL containers and their volumes |
| `docker-compose.yml` | the AnsibleForms, runner and MySQL containers and their volumes |
| `.env` | the settings, with sample values that work out of the box |
| `data/` | what AnsibleForms and MySQL start with: config, sample forms and playbooks, custom functions, ansible and git settings, and the config seed that registers the RTE |
| `data/` | what AnsibleForms and MySQL start with: config, sample forms and playbooks, custom functions, ansible and git settings, and the config seed that registers the runner |

What the containers write at runtime (the database, logs, backups, keys) also lands in
`data/`, and `.gitignore` keeps it out of git.
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ sed -i "s/^ENGINE_SOCKET_GID=.*/ENGINE_SOCKET_GID=$(stat -c %g /var/run/docker.s
docker compose up -d
```

The app and the RTE run as the user `node` (uid 1000), so they need to own `data/`: that is what the `chown` is for.
The RTE starts each job's container through Docker's socket, so it joins the socket's group: that is what the `sed` is for.
The app and the runner run as the user `node` (uid 1000), so they need to own `data/`: that is what the `chown` is for.
The runner starts each job's container through Docker's socket, so it joins the socket's group: that is what the `sed` is for.
Coming from 6, whose container ran as root, run the same `chown` once before you start 7; MySQL takes its own folder back when it starts.

## What you get
Expand All @@ -46,8 +46,8 @@ Everything under `data/` is mounted into the containers and survives a restart o
- A demo `config.yaml` with categories, roles and constants, and sample forms
- Sample maintenance playbooks and a `dummy.yaml` playbook
- Sample custom JavaScript functions and jq definitions to extend AnsibleForms
- An RTE Runner that runs each playbook in a container of its own, with ansible, Python 3 and a set of Galaxy collections
- A config seed, `data/seed.yaml`, that registers the RTE as the default runner
- A runner that runs each playbook in its own container, with ansible, Python 3 and Galaxy collections
- A config seed, `data/seed.yaml`, that registers the `rte` container as the default runner

## Database

Expand Down Expand Up @@ -82,9 +82,9 @@ first start with 9.7, as MySQL supports moving to the next LTS, once these steps

## Running playbooks

AnsibleForms 7 runs no playbook in the app: the `rte` container, the [RTE Runner](https://github.com/ansibleforms/runner),
AnsibleForms 7 runs no playbook in the app: the `rte` container, the [Runner](https://github.com/ansibleforms/runner),
starts each job in a container of its own from `ghcr.io/ansibleforms/ansibleforms-rte-full:7` (`RTE_IMAGE`). The app dials it
on `http://rte:8000` with `RTE_TOKEN` from `.env` and keeps one WebSocket open (`RTE_MODE=inbound`): the RTE gets no database
on `http://rte:8000` with `RTE_TOKEN` from `.env` and keeps one WebSocket open (`RTE_MODE=inbound`): the runner gets no database
credentials, and is not published on the host.

It starts the jobs through the engine's socket (`ENGINE_SOCKET` in `.env`), which gives it that engine's full rights on this
Expand Down
2 changes: 1 addition & 1 deletion scale/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ One image, started in different roles (`AF_ROLE`):
| unset | the controller's web interface and API **and** the worker, in one process: the default | 1 |
| `controller` | the web interface and the API (`app` before 7.8, still read) | as many as you like, behind a load balancer |
| `worker` | the background work: the database bootstrap and the config seed, the schedules, the nightly backup, the repository syncs, the cleanups | 1 at work; more wait and take over |
| `rte` | the playbooks (the `ansibleforms-rte-full` image) | as many as you like |
| `rte` | the playbooks: the Node runner of the `ansibleforms-rte-full` image | as many as you like |

[compose.yaml](compose.yaml) runs two controller nodes behind nginx, two workers, one runner and a database.
Copy [.env.example](.env.example) to `.env` and fill in the secrets first.
Expand Down
Loading