2020-03-15 18:54:41 +08:00
# Self-building
2020-03-15 03:41:01 +08:00
2020-04-19 19:51:26 +08:00
**Caution: self-building does not have to be used on its own. See the [Alternative Architectures ](alternative-architectures.md ) page.**
2020-04-02 16:43:40 +08:00
The playbook supports the self-building of some of its components. This may be useful for architectures besides x86_64, which have no Docker images right now (e g. the armv7 for the Raspberry Pi). Some playbook roles have been updated, so they build the necessary image on the host. It needs more space, as some build tools need to be present (like Java, for ma1sd).
2020-03-15 03:41:01 +08:00
2020-03-15 17:34:35 +08:00
To use these modification there is a variable that needs to be switched to enable this functionality. Add this to your `vars.yaml` file:
```yaml
2020-04-08 21:46:41 +08:00
matrix_container_images_self_build: true
2020-03-15 03:41:01 +08:00
```
2020-03-15 17:34:35 +08:00
Setting that variable will self-build every role which supports self-building. Self-building can be set on a per-role basis as well.
2020-03-15 03:41:01 +08:00
2020-04-09 23:48:56 +08:00
List of roles where self-building the Docker image is currently possible:
- `matrix-synapse`
- `matrix-riot-web`
- `matrix-coturn`
- `matrix-ma1sd`
2020-06-08 14:52:34 +08:00
- `matrix-mailer`
2020-04-09 23:48:56 +08:00
- `matrix-mautrix-facebook`
- `matrix-mautrix-hangouts`
- `matrix-mx-puppet-skype`
2020-03-15 18:54:41 +08:00
Adding self-building support to other roles is welcome. Feel free to contribute!