mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-16 19:24:58 +00:00
EspoCRM role: custom image + single data volume + runtime flag setter
• Build a custom image and replace upstream entrypoint with docker-entrypoint-custom.sh (strict fail on flag script). • Introduce set_flags.php and wire via ESPOCRM_SET_FLAGS_SCRIPT; apply flags at container start; clear cache afterwards. • Keep exactly one Docker volume (data:/var/www/html/); drop separate custom/extensions mounts. • Compose: use custom image, add healthchecks & depends_on for daemon/websocket; keep service healthy gating. • Ansible: deploy scripts, build & up via handlers; patch siteUrl as www-data; run upgrade non-fatal; always run flag setter. • Vars/Env: add ESPO_INIT_* toggles and ESPOCRM_SET_FLAGS_SCRIPT; refactor variables for scripts & custom image paths. Conversation context: https://chatgpt.com/share/68dd1992-020c-800f-bcf5-2db60cb4aab2
This commit is contained in:
9
roles/web-app-espocrm/templates/Dockerfile.j2
Normal file
9
roles/web-app-espocrm/templates/Dockerfile.j2
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM "{{ ESPOCRM_IMAGE }}:{{ ESPOCRM_VERSION }}"
|
||||
|
||||
COPY {{ ESPOCRM_SET_FLAG_SCRIPT_HOST_REL }} {{ ESPOCRM_SET_FLAG_SCRIPT_DOCKER }}
|
||||
RUN chmod +x {{ ESPOCRM_SET_FLAG_SCRIPT_DOCKER }}
|
||||
|
||||
COPY {{ ESPOCRM_ENTRYPOINT_SCRIPT_HOST_REL }} {{ ESPOCRM_ENTRYPOINT_SCRIPT_DOCKER }}
|
||||
RUN chmod +x {{ ESPOCRM_ENTRYPOINT_SCRIPT_DOCKER }}
|
||||
|
||||
ENTRYPOINT ["{{ ESPOCRM_ENTRYPOINT_SCRIPT_DOCKER }}"]
|
Reference in New Issue
Block a user