Compare commits

...

9 Commits

Author SHA1 Message Date
Fanch
94bc28ae2e
Merge 4dee25d0e64ab9f40002318c69154308f85b26f0 into da08975ca851dcf7872012e33d49c21c1f907ebb 2024-11-29 11:58:15 +09:00
Slavi Pantaleev
da08975ca8
Merge pull request #3836 from luixxiul/fix
Update docs/faq.md
2024-11-28 18:01:14 +02:00
Suguru Hirahara
d528ab1822
Update docs/faq.md: mention element-docker-demo project by Element
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2024-11-29 00:55:24 +09:00
Suguru Hirahara
313a01320b
Update docs/faq.md: add an entry about MDAD
This is an actual question I asked when I saw "MDAD".

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2024-11-29 00:43:42 +09:00
Fanch
4dee25d0e6 add travis ci file 2020-10-14 00:57:10 +02:00
Fanch
c9d5f0e378 try to make docker in docker work 2020-10-14 00:53:44 +02:00
Fanch
f56db3c2a7 add missing variable per role 2020-10-14 00:53:07 +02:00
Fanch
a1dcf5e79f add missing variable for test 2020-10-13 20:48:10 +02:00
Fanch
48e9a3115a add default file from "molecule init scenario -r matrix-coturn" 2020-10-13 20:36:50 +02:00
7 changed files with 134 additions and 1 deletions

9
.travis.yml Normal file
View File

@ -0,0 +1,9 @@
---
language: python
services: docker
install:
- pip install molecule docker
script:
- cd roles/matrix-coturn && molecule test

View File

@ -121,6 +121,10 @@ Besides Synapse, you'd need other things - a Postgres database, likely the [Elem
Using the playbook, you get all these components in a way that works well together out of the box.
### Occasionally I see some people are talking about "MDAD". What is it?
It is the acronym of us: **m**atrix-**d**ocker-**a**nsible-**d**eploy.
### What's different about this Ansible playbook compared to [EMnify/matrix-synapse-auto-deploy](https://github.com/EMnify/matrix-synapse-auto-deploy)?
This is similar to the [EMnify/matrix-synapse-auto-deploy](https://github.com/EMnify/matrix-synapse-auto-deploy) Ansible deployment, but:
@ -193,7 +197,7 @@ The only thing we need on the distro is systemd and Python (we install Docker ou
Instead of using [docker-compose](https://docs.docker.com/compose/), we prefer installing systemd services and scheduling those independently.
There are people who have worked on turning this setup into a docker-compose-based one. See these experiments [here](https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/64#issuecomment-603164625).
There are people who have worked on turning this setup into a docker-compose-based one. See these experiments [here](https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/64#issuecomment-603164625). There is also a demo project ([element-docker-demo](https://github.com/element-hq/element-docker-demo)) by Element.
### Can I run this on a distro without systemd?

View File

@ -0,0 +1,33 @@
---
# Based on ansible-lint config
extends: default
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
colons:
max-spaces-after: -1
level: error
commas:
max-spaces-after: -1
level: error
comments: disable
comments-indentation: disable
document-start: disable
empty-lines:
max: 3
level: error
hyphens:
level: error
indentation: disable
key-duplicates: enable
line-length: disable
new-line-at-end-of-file: disable
new-lines:
type: unix
trailing-spaces: disable
truthy: disable

View File

@ -0,0 +1,22 @@
*******
Docker driver installation guide
*******
Requirements
============
* Docker Engine
Install
=======
Please refer to the `Virtual environment`_ documentation for installation best
practices. If not using a virtual environment, please consider passing the
widely recommended `'--user' flag`_ when invoking ``pip``.
.. _Virtual environment: https://virtualenv.pypa.io/en/latest/
.. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
.. code-block:: bash
$ python3 -m pip install 'molecule[docker]'

View File

@ -0,0 +1,29 @@
---
- name: Converge
hosts: all
tasks:
- name: "Include matrix-base"
include_role:
name: "matrix-base"
vars:
matrix_domain: "example.org"
matrix_vars_yml_snapshotting_enabled: false
run_self_check: false
- name: "Include matrix-coturn"
include_role:
name: "matrix-coturn"
vars:
matrix_systemd_services_list: []
run_setup: true
matrix_base_data_path: "/matrix"
matrix_user_username: "root"
matrix_user_groupname: "root"
matrix_server_fqn_matrix: "example.org"
matrix_systemd_path: "/etc/systemd/system"
matrix_host_command_docker: "/usr/bin/env docker"
# matrix_user_uid: 0
# matrix_user_gid: 0
# maybe those should be added in role default/main.yml
matrix_coturn_enabled: true
matrix_coturn_turn_external_ip_address: 127.0.0.1
matrix_coturn_turn_static_auth_secret: "VeryFakeSecret"

View File

@ -0,0 +1,27 @@
---
dependency:
name: galaxy
driver:
name: docker
platforms:
- name: coturn-test
image: fanchthesystem/ubuntu18-with-systemd:latest #fanchthesystem/centos7-with-systemd:latest # docker.io/pycontribs/centos:7
override_command: false
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
# - /var/run/docker.sock:/var/run/docker.sock
# network:
# - name: dind-network
# env:
# DOCKER_HOST: "tcp://dind:2375"
# https://blog.alekc.org/testing-ansible-roles-with-molecule-using-dind/
# https://github.com/ansible/ansible/issues/71528
provisioner:
name: ansible
log: true
config_options:
defaults:
timeout: 60
verifier:
name: ansible

View File

@ -0,0 +1,9 @@
---
# This is an example playbook to execute Ansible tests.
- name: Verify
hosts: all
tasks:
- name: Example assertion
assert:
that: true