mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-11-07 13:48:00 +00:00
• Introduce init container and runtime-ready Dockerfile (Alpine) installing php83-gd/intl/pdo_mysql • Disable composer scripts in builder and ignore build-time ext reqs • New docker-compose template (web/worker/scheduler/opensearch) + persistent volumes • Use TRUSTED_PROXIES env; fix APP_URL formatting; set OPENSEARCH_HOST=opensearch • Replace SHOPWARE_PHP_CONTAINER refs with SHOPWARE_WEB_CONTAINER in tasks • Render and copy init.sh via volumes path • Remove old nginx/php split and legacy DB env task • Fix svc-db-postgres var: database_type now uses entity_name https://chatgpt.com/share/6907fc58-7c28-800f-a993-c207f28859c9
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
---
|
|
- name: "Load docker, DB and proxy for {{ application_id }}"
|
|
include_role:
|
|
name: sys-stk-full-stateful
|
|
vars:
|
|
docker_compose_flush_handlers: false
|
|
|
|
- name: "Deploy {{ SHOPWARE_INIT_HOST }}"
|
|
template:
|
|
src: init.sh.j2
|
|
dest: "{{ SHOPWARE_INIT_HOST }}"
|
|
notify:
|
|
- docker compose up
|
|
- docker compose build
|
|
|
|
- name: "Flush docker compose handlers"
|
|
meta: flush_handlers
|
|
|
|
- name: Wait for Shopware HTTP endpoint
|
|
wait_for:
|
|
host: "127.0.0.1"
|
|
port: "{{ ports.localhost.http[application_id] }}"
|
|
delay: 5
|
|
timeout: 300
|
|
|
|
- name: "Warm up caches and index"
|
|
shell: |
|
|
docker exec -i --user {{ SHOPWARE_USER }} {{ SHOPWARE_WEB_CONTAINER }} bash -lc '
|
|
cd {{ SHOPWARE_ROOT }}
|
|
php bin/console messenger:consume --time-limit=60 --limit=100 || true
|
|
php bin/console dal:refresh:index || true
|
|
php bin/console cache:clear
|
|
'
|
|
args:
|
|
chdir: "{{ docker_compose.directories.instance }}"
|
|
|
|
- name: Execute setup routines (OIDC/LDAP)
|
|
include_tasks: 01_setup.yml
|
|
|
|
- name: Execute cleanup routines
|
|
include_tasks: 02_cleanup.yml
|
|
when: MODE_CLEANUP
|