Allow force-patching webpack.config.js when self-building Element

We were applying the low-memory system patch to webpack.config.js
on systems with < 4GB memory.

From now on, we also let people force-enable patching by toggling the
`matrix_client_element_container_image_self_build_low_memory_system_patch_enabled`
variable.

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1357
This commit is contained in:
Slavi Pantaleev
2021-11-01 09:06:58 +02:00
parent add313c7be
commit 0434e3bf8f
2 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,7 @@
owner: root
group: root
mode: '0644'
when: "matrix_client_element_container_image_self_build|bool and ansible_memtotal_mb < 4096"
when: "matrix_client_element_container_image_self_build|bool and matrix_client_element_container_image_self_build_low_memory_system_patch_enabled|bool"
- name: Ensure Element Docker image is built
docker_image: