mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-05-10 22:21:28 +03:00
e5b48f22db
* Remove `matrix_synapse_ext_synapse_auto_accept_invite_worker_to_run_on` Signed-off-by: Suguru Hirahara <did:key:z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5> * Remove `matrix_synapse_ext_synapse_auto_accept_invite_accept_invites_only_direct_messages` Signed-off-by: Suguru Hirahara <did:key:z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5> * Remove `matrix_synapse_ext_synapse_auto_accept_invite_enabled` Signed-off-by: Suguru Hirahara <did:key:z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5> * Remove `matrix_synapse_container_image_customizations_auto_accept_invite_installation_enabled` Signed-off-by: Suguru Hirahara <did:key:z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5> * Remove `matrix_synapse_ext_synapse_auto_accept_invite_version` Signed-off-by: Suguru Hirahara <did:key:z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5> * Remove `matrix_synapse_ext_synapse_auto_accept_invite_accept_invites_only_from_local_users` Signed-off-by: Suguru Hirahara <did:key:z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5> * Remove roles/custom/matrix-synapse/tasks/ext/synapse-auto-accept-invite Signed-off-by: Suguru Hirahara <did:key:z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5> * Update README.md Signed-off-by: Suguru Hirahara <did:key:z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5> * Update container-images.md Signed-off-by: Suguru Hirahara <did:key:z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5> * Update configuring-playbook.md Signed-off-by: Suguru Hirahara <did:key:z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5> * Update configuring-playbook-synapse-auto-accept-invite.md Reuse https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/bf744319e0fd3ab889070ab327ab3324824647fc/docs/configuring-playbook-sliding-sync-proxy.md Signed-off-by: Suguru Hirahara <did:key:z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5> * Update validate_config.yml Signed-off-by: Suguru Hirahara <did:key:z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5> * Update CHANGELOG.md Signed-off-by: Suguru Hirahara <did:key:z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5> --------- Signed-off-by: Suguru Hirahara <did:key:z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5> Co-authored-by: Suguru Hirahara <did:key:z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
52 lines
2.7 KiB
Docker
52 lines
2.7 KiB
Docker
#jinja2: lstrip_blocks: True
|
|
{% if matrix_synapse_container_image_customizations_templates_enabled %}
|
|
FROM {{ matrix_synapse_docker_image }} AS templates-builder
|
|
|
|
{#
|
|
This ugly script below does quite a lot:
|
|
- installs git and other dependencies temporarily, just so we could do a shallow-clone
|
|
- prepare the SSH config: keyscanning (if enabled), private key (if enabled)
|
|
- performs a git shallow clone with just the branch we need
|
|
- makes sure the files are owned by the user that will actually run the container later
|
|
#}
|
|
{% set dependencies = ['git', 'ssh', 'openssh-client'] %}
|
|
{% if matrix_synapse_container_image_customizations_templates_git_repository_ssh_private_key %}
|
|
RUN echo '{{ matrix_synapse_container_image_customizations_templates_git_repository_ssh_private_key | b64encode }}' | base64 -d > /custom-templates-private-key
|
|
RUN chmod 400 /custom-templates-private-key
|
|
{% endif %}
|
|
|
|
RUN apt-get update && apt-get install --no-install-recommends -y {{ dependencies | join(' ') }}
|
|
|
|
{% if matrix_synapse_container_image_customizations_templates_git_repository_keyscan_enabled %}
|
|
RUN mkdir ~/.ssh
|
|
RUN chmod 700 ~/.ssh
|
|
RUN ssh-keyscan -t rsa {{ matrix_synapse_container_image_customizations_templates_git_repository_keyscan_hostname }} >> ~/.ssh/known_hosts
|
|
{% endif %}
|
|
|
|
RUN {% if matrix_synapse_container_image_customizations_templates_git_repository_ssh_private_key %}GIT_SSH_COMMAND='ssh -i /custom-templates-private-key'{% endif %} git \
|
|
clone \
|
|
--branch={{ matrix_synapse_container_image_customizations_templates_git_repository_branch }} \
|
|
--depth=1 \
|
|
--single-branch \
|
|
--no-tags \
|
|
{{ matrix_synapse_container_image_customizations_templates_git_repository_url }} \
|
|
{{ matrix_synapse_container_image_customizations_templates_in_container_base_path }}
|
|
|
|
RUN /bin/sh -c 'cd {{ matrix_synapse_container_image_customizations_templates_in_container_base_path }} && git rev-parse HEAD > git-revision.txt'
|
|
RUN rm -rf {{ matrix_synapse_container_image_customizations_templates_in_container_base_path }}/.git
|
|
|
|
RUN chown -R {{ matrix_synapse_uid }}:{{ matrix_synapse_gid }} {{ matrix_synapse_container_image_customizations_templates_in_container_base_path }}
|
|
{% endif %}
|
|
|
|
FROM {{ matrix_synapse_docker_image }}
|
|
|
|
{% if matrix_synapse_container_image_customizations_s3_storage_provider_installation_enabled %}
|
|
RUN pip install synapse-s3-storage-provider=={{ matrix_synapse_ext_synapse_s3_storage_provider_version }}
|
|
{% endif %}
|
|
|
|
{% if matrix_synapse_container_image_customizations_templates_enabled %}
|
|
COPY --from=templates-builder {{ matrix_synapse_container_image_customizations_templates_in_container_base_path }} {{ matrix_synapse_container_image_customizations_templates_in_container_base_path }}
|
|
{% endif %}
|
|
|
|
{{ matrix_synapse_container_image_customizations_dockerfile_body_custom }}
|