From 943ed6a1ffe160976cb73c46dc40a2df7a7dd62c Mon Sep 17 00:00:00 2001 From: Blai Peidro Date: Mon, 30 Nov 2026 01:18:17 +0100 Subject: [PATCH 1/2] feat: jobs get the vars files and uploads, read-only --- README.md | 6 +++--- docker-compose.yml | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0d4ad37..f186ec3 100644 --- a/README.md +++ b/README.md @@ -92,9 +92,9 @@ host. With Podman, set `RTE_ENGINE=podman` and `ENGINE_SOCKET` to Podman's socke `/run/user//podman/podman.sock` rootless, with `RTE_USER=0`). `data/seed.yaml` registers it as the default runner on every start, so it is read-only under Connections > Runners. -Ansible settings, roles and collections under `data/ansible/`, the SSH key and the libraries the pip install playbook adds -are mounted into every job (`RTE_JOB_MOUNTS`), not the app. When your playbooks need more, build an image FROM -`ansibleforms-rte-core` or `ansibleforms-rte-full` and set it as `RTE_IMAGE`: [ansibleforms/rte](https://github.com/ansibleforms/rte/tree/main/examples) shows how. +Ansible settings, roles and collections under `data/ansible/`, the SSH key, the libraries the pip install playbook adds, +and the vars files and uploads (read-only, at their paths in the app) are mounted into every job (`RTE_JOB_MOUNTS`), not +the app. When your playbooks need more, build an image FROM `ansibleforms-rte-core` or `ansibleforms-rte-full` and set it as `RTE_IMAGE`: [ansibleforms/rte](https://github.com/ansibleforms/rte/tree/main/examples) shows how. ## Several nodes diff --git a/docker-compose.yml b/docker-compose.yml index b43000b..ad7262e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -118,9 +118,10 @@ services: - RTE_ENGINE_SOCKET=/run/engine.sock - RTE_IMAGE=ghcr.io/ansibleforms/ansibleforms-rte-full:7 # What every job gets from ./data, as the playbooks had it in the RTE before : the ansible.cfg, - # roles and collections, the SSH key and the git settings, and the libraries the - # ansibleforms_pip_install playbook installs (PYTHONPATH) - - RTE_JOB_MOUNTS=/app/dist/persistent/ansible/ansible.cfg:/etc/ansible/ansible.cfg,/app/dist/persistent/ansible/roles:/etc/ansible/roles,/app/dist/persistent/ansible/collections:/etc/ansible/collections,/app/dist/persistent/ssh:/home/node/.ssh:rw,/app/dist/persistent/git/.gitconfig:/home/node/.gitconfig,/app/dist/persistent/python:/app/dist/persistent/python:rw + # roles and collections, the SSH key and the git settings, the libraries the + # ansibleforms_pip_install playbook installs (PYTHONPATH), and the vars files and uploads + # (read-only, at their paths in the app) + - RTE_JOB_MOUNTS=/app/dist/persistent/ansible/ansible.cfg:/etc/ansible/ansible.cfg,/app/dist/persistent/ansible/roles:/etc/ansible/roles,/app/dist/persistent/ansible/collections:/etc/ansible/collections,/app/dist/persistent/ssh:/home/node/.ssh:rw,/app/dist/persistent/git/.gitconfig:/home/node/.gitconfig,/app/dist/persistent/python:/app/dist/persistent/python:rw,/app/dist/persistent/vars:/app/dist/persistent/vars,/app/dist/persistent/uploads:/app/dist/persistent/uploads - PYTHONPATH=/app/dist/persistent/python/lib volumes: # The app's folders : playbooks, repositories, uploads, the SSH key, the ansible settings From a4a6a8d6b0ea15b0c899412634c9abbc228ab0f1 Mon Sep 17 00:00:00 2001 From: Blai Peidro Date: Mon, 30 Nov 2026 01:19:07 +0100 Subject: [PATCH 2/2] feat: keep the vars and uploads folders, for the jobs' mount --- .gitignore | 4 +++- data/uploads/.gitkeep | 0 data/vars/.gitkeep | 0 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 data/uploads/.gitkeep create mode 100644 data/vars/.gitkeep diff --git a/.gitignore b/.gitignore index 5c38ded..f759461 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,9 @@ data/backups/ data/form_backups/ data/forms_backups/ data/forms_staging/ -data/uploads/ +# the files uploaded with the forms (its folder kept, for the jobs' mount) +data/uploads/* +!data/uploads/.gitkeep # the libraries the pip install playbook adds (its folder kept, for the jobs' mount) data/python/* !data/python/.gitkeep diff --git a/data/uploads/.gitkeep b/data/uploads/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/data/vars/.gitkeep b/data/vars/.gitkeep new file mode 100644 index 0000000..e69de29