mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
patch.py located files/ruby/ relative to its own __file__. That holds in the repo, where the script sits next to the fragments, but the image copies the script to /tmp/patch.py and the fragments to /tmp/ruby/, so parent.parent resolved to / and the build died with FileNotFoundError: /ruby/omniauth_provider.rb on every retry. DECIDIM_PATCH_RUBY_DOCKER already decides where the COPY puts the fragments. Reading it in the script makes that variable the only place the location is stated, so the layout can change without a second place silently disagreeing. Missing variable raises instead of guessing. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
31 lines
1.6 KiB
YAML
31 lines
1.6 KiB
YAML
---
|
|
application_id: "web-app-decidim"
|
|
domain: "{{ lookup('domain', application_id) }}"
|
|
swarm_stack_converge_retries: 600
|
|
|
|
DECIDIM_VERSION: "{{ lookup('config', application_id, 'services.decidim.version') }}"
|
|
DECIDIM_IMAGE: "{{ lookup('config', application_id, 'services.decidim.image') }}"
|
|
DECIDIM_CONTAINER: "{{ lookup('config', application_id, 'services.decidim.name') }}"
|
|
|
|
DECIDIM_SECRET_KEY_BASE: "{{ lookup('config', application_id, 'secrets.credentials.secret_key_base') }}"
|
|
|
|
DECIDIM_OIDC_ENABLED: "{{ lookup('config', application_id, 'services.sso.enabled') }}"
|
|
DECIDIM_OIDC_CLIENT_ID: "{{ OIDC.CLIENT.ID }}"
|
|
DECIDIM_OIDC_CLIENT_SECRET: "{{ OIDC.CLIENT.SECRET }}"
|
|
DECIDIM_OIDC_ISSUER: "{{ OIDC.CLIENT.ISSUER_URL }}"
|
|
DECIDIM_OIDC_AUTHORIZE_URL: "{{ OIDC.CLIENT.AUTHORIZE_URL }}"
|
|
DECIDIM_OIDC_TOKEN_URL: "{{ OIDC.CLIENT.TOKEN_URL }}"
|
|
DECIDIM_OIDC_USER_INFO_URL: "{{ OIDC.CLIENT.USER_INFO_URL }}"
|
|
|
|
DECIDIM_ORGANIZATION_NAME: "{{ defaults_service_provider.platform.titel }}"
|
|
|
|
DECIDIM_PATCH_SCRIPT_FILE: "patch.py"
|
|
DECIDIM_PATCH_SCRIPT_HOST_ABS: "{{ [ lookup('container', application_id, 'directories.volumes'), DECIDIM_PATCH_SCRIPT_FILE ] | path_join }}"
|
|
DECIDIM_PATCH_SCRIPT_HOST_REL: "volumes/{{ DECIDIM_PATCH_SCRIPT_FILE }}"
|
|
DECIDIM_PATCH_SCRIPT_DOCKER: "/tmp/{{ DECIDIM_PATCH_SCRIPT_FILE }}"
|
|
|
|
DECIDIM_PATCH_RUBY_DIR: "ruby"
|
|
DECIDIM_PATCH_RUBY_HOST_ABS: "{{ [ lookup('container', application_id, 'directories.volumes'), DECIDIM_PATCH_RUBY_DIR ] | path_join }}"
|
|
DECIDIM_PATCH_RUBY_HOST_REL: "volumes/{{ DECIDIM_PATCH_RUBY_DIR }}"
|
|
DECIDIM_PATCH_RUBY_DOCKER: "/tmp/{{ DECIDIM_PATCH_RUBY_DIR }}"
|