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.
This commit is contained in:
parent
848068e62a
commit
77b919aec6
@ -98,13 +98,15 @@
|
|||||||
--cap-drop=ALL
|
--cap-drop=ALL
|
||||||
-v {{ matrix_appservice_irc_config_path }}:/config:z
|
-v {{ matrix_appservice_irc_config_path }}:/config:z
|
||||||
-v {{ matrix_appservice_irc_data_path }}:/data:z
|
-v {{ matrix_appservice_irc_data_path }}:/data:z
|
||||||
|
--entrypoint=/bin/bash
|
||||||
{{ matrix_appservice_irc_docker_image }}
|
{{ matrix_appservice_irc_docker_image }}
|
||||||
node app.js
|
-c
|
||||||
|
'node app.js
|
||||||
-r
|
-r
|
||||||
-f /config/registration-template.yaml
|
-f /config/registration-template.yaml
|
||||||
-u "http://matrix-appservice-irc:9999"
|
-u "http://matrix-appservice-irc:9999"
|
||||||
-c /config/config.yaml
|
-c /config/config.yaml
|
||||||
-l irc_bot
|
-l irc_bot'
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: Read Appservice IRC registration-template.yaml
|
- name: Read Appservice IRC registration-template.yaml
|
||||||
|
@ -30,8 +30,9 @@ ExecStart=/usr/bin/docker run --rm --name matrix-appservice-irc \
|
|||||||
{% for arg in matrix_appservice_irc_container_extra_arguments %}
|
{% for arg in matrix_appservice_irc_container_extra_arguments %}
|
||||||
{{ arg }} \
|
{{ arg }} \
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
--entrypoint=/bin/bash \
|
||||||
{{ matrix_appservice_irc_docker_image }} \
|
{{ 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 kill matrix-appservice-irc
|
||||||
ExecStop=-/usr/bin/docker rm matrix-appservice-irc
|
ExecStop=-/usr/bin/docker rm matrix-appservice-irc
|
||||||
|
Loading…
Reference in New Issue
Block a user