You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fa126fa
Browse filesBrowse the repository at this point in the historyBrowse files
AnsibleForms 7 runs no playbook in the app, so every playbook form failed with "No runner to run this playbook". An rte service now runs ghcr.io/ansibleforms/ansibleforms-rte:7 on the same data folder, with the ansible settings, roles, collections and PYTHONPATH moved over from the app. data/seed.yaml registers it as the default runner with RTE_TOKEN from .env. It starts once the app is healthy: an RTE that finds no schema stops working without exiting. CI runs the demo playbook on it.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,9 @@ The setup is a compose file, its settings and the data the containers start with
19
19
20
20
| Path | Holds |
21
21
|---|---|
22
-
|`docker-compose.yml`| the AnsibleForms and MySQL containers and their volumes |
22
+
|`docker-compose.yml`| the AnsibleForms, RTE and MySQL containers and their volumes |
23
23
|`.env`| the settings, with sample values that work out of the box |
24
-
|`data/`| what AnsibleForms and MySQL start with: config, sample forms and playbooks, custom functions, ansible and git settings |
24
+
|`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|
25
25
26
26
What the containers write at runtime (the database, logs, backups, keys) also lands in
# - ./data/assets/images:/app/dist/views/img # 6 custom images (login_background_%theme%.jpg and logo_%theme%.svg | 2 for each theme = light, dark and color)
69
-
66
+
# AnsibleForms RTE (runtime environment): runs the playbooks. AnsibleForms 7 runs none in
67
+
# the app itself, so this is where ansible, the Python libraries and the collections live.
68
+
# The app reaches it on http://rte:8000 with RTE_TOKEN; it is not published on the host.
69
+
rte:
70
+
# Only start once the app is healthy: it creates the schema on the first start, and an
71
+
# RTE that finds no schema stops working without exiting, so a restart would not help
72
+
depends_on:
73
+
mysqldb:
74
+
condition: service_healthy
75
+
app:
76
+
condition: service_healthy
77
+
image: ghcr.io/ansibleforms/ansibleforms-rte:7
78
+
container_name: af_rte
79
+
restart: unless-stopped
80
+
# Load extra environment variables from file (the database, ENCRYPTION_SECRET, RTE_TOKEN)
81
+
env_file:
82
+
- ./.env
83
+
# Set environment variables
84
+
environment:
85
+
- DB_HOST=mysqldb
86
+
- DB_USER=$MYSQLDB_USER
87
+
- DB_PASSWORD=$MYSQLDB_PASSWORD
88
+
- DB_PORT=$MYSQLDB_DOCKER_PORT
89
+
- PORT=8000
90
+
# Only the app calls it, inside the compose network
91
+
- HTTPS=0
92
+
# The libraries the ansibleforms_pip_install playbook installs into the persistent folder
93
+
- PYTHONPATH=/app/dist/persistent/python/lib
94
+
volumes:
95
+
# The same folders as the app: playbooks, repositories, uploads and the SSH key
96
+
- ./data:/app/dist/persistent # persistent app data
0 commit comments