Sfoglia il codice sorgente

Become compatible with official matrix-appservice-irc Docker image

This change allows us to work with both our existing Docker image
(`tedomum/matrix-appservice-irc:latest`) and with the
official Docker image (`matrixdotorg/matrix-appservice-irc`).

The actual change to the official Docker image requires more testing
and will be done separately.
pull/361/head
Slavi Pantaleev 6 anni fa
parent
commit
77b919aec6
2 ha cambiato i file con 6 aggiunte e 3 eliminazioni
  1. +4
    -2
      roles/matrix-bridge-appservice-irc/tasks/setup_install.yml
  2. +2
    -1
      roles/matrix-bridge-appservice-irc/templates/systemd/matrix-appservice-irc.service.j2

+ 4
- 2
roles/matrix-bridge-appservice-irc/tasks/setup_install.yml Vedi File

@@ -98,13 +98,15 @@
--cap-drop=ALL
-v {{ matrix_appservice_irc_config_path }}:/config:z
-v {{ matrix_appservice_irc_data_path }}:/data:z
--entrypoint=/bin/bash
{{ matrix_appservice_irc_docker_image }}
node app.js
-c
'node app.js
-r
-f /config/registration-template.yaml
-u "http://matrix-appservice-irc:9999"
-c /config/config.yaml
-l irc_bot
-l irc_bot'
changed_when: false

- name: Read Appservice IRC registration-template.yaml


+ 2
- 1
roles/matrix-bridge-appservice-irc/templates/systemd/matrix-appservice-irc.service.j2 Vedi File

@@ -30,8 +30,9 @@ ExecStart=/usr/bin/docker run --rm --name matrix-appservice-irc \
{% for arg in matrix_appservice_irc_container_extra_arguments %}
{{ arg }} \
{% endfor %}
--entrypoint=/bin/bash \
{{ matrix_appservice_irc_docker_image }} \
-c /config/config.yaml -f /config/registration.yaml -p 9999
-c 'node app.js -c /config/config.yaml -f /config/registration.yaml -p 9999'

ExecStop=-/usr/bin/docker kill matrix-appservice-irc
ExecStop=-/usr/bin/docker rm matrix-appservice-irc


Caricamento…
Annulla
Salva