Explorar el Código

Add tmp path to allow container writing there

Background why I did this: https://docs.gunicorn.org/en/stable/settings.html#worker-tmp-dir
pull/2089/head
Julian-Samuel Gebühr hace 3 años
padre
commit
478142f352
Se han modificado 3 ficheros con 4 adiciones y 0 borrados
  1. +2
    -0
      roles/matrix-cactus-comments/defaults/main.yml
  2. +1
    -0
      roles/matrix-cactus-comments/tasks/setup_install.yml
  3. +1
    -0
      roles/matrix-cactus-comments/templates/systemd/matrix-cactus-comments.service.j2

+ 2
- 0
roles/matrix-cactus-comments/defaults/main.yml Ver fichero

@@ -9,6 +9,8 @@ matrix_cactus_comments_docker_src_files_path: "{{ matrix_cactus_comments_base_pa


matrix_cactus_comments_base_path: "{{ matrix_base_data_path }}/cactus-comments"
matrix_cactus_comments_container_tmp_path: "{{ matrix_cactus_comments_base_path }}/tmp"

matrix_cactus_comments_app_service_config_file: "{{ matrix_cactus_comments_base_path }}/cactus_appservice.yaml"
matrix_cactus_comments_app_service_env_file: "{{ matrix_cactus_comments_base_path }}/cactus.env"
matrix_synapse_app_service_config_files: "{{ matrix_cactus_comments_app_service_config_file }}"


+ 1
- 0
roles/matrix-cactus-comments/tasks/setup_install.yml Ver fichero

@@ -9,6 +9,7 @@
group: "{{ matrix_user_groupname }}"
with_items:
- {path: "{{ matrix_cactus_comments_base_path }}", when: true}
- {path: "{{ matrix_cactus_comments_container_tmp_path }}", when: true}
- {path: "{{ matrix_cactus_comments_docker_src_files_path }}", when: true}
when: "item.when | bool"



+ 1
- 0
roles/matrix-cactus-comments/templates/systemd/matrix-cactus-comments.service.j2 Ver fichero

@@ -22,6 +22,7 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-cactus-comment
--user={{ matrix_user_uid }}:{{ matrix_user_gid }} \
--read-only \
--env-file {{ matrix_cactus_comments_app_service_env_file }} \
--mount type=bind,src={{ matrix_cactus_comments_container_tmp_path }},dst=/tmp \
--network={{ matrix_docker_network }} \
{{ matrix_cactus_comments_docker_image }}



Cargando…
Cancelar
Guardar