1
0
mirror of https://github.com/spantaleev/matrix-docker-ansible-deploy.git synced 2024-12-12 08:43:55 +02:00
matrix-docker-ansible-deploy/roles/matrix-synapse/tasks
Slavi Pantaleev 5eed874199 Improve self-building experience (avoid conflict with pullable images)
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/716

This patch makes us use more fully-qualified container image names
(either prefixed with docker.io/ or with localhost/).

The latter happens when self-building is enabled.

We've recently had issues where if an image was removed manually
and the service was restarted (making `docker run` fetch it from Docker Hub, etc.),
we'd end up with a pulled image, even though we're aiming for a self-built one.
Re-running the playbook would then not do a rebuild, because:
- the image with that name already exists (even though it's something
else)
- we sometimes had conditional logic where we'd build only if the git
repo changed

By explicitly changing the name of the images (prefixing with localhost/),
we avoid such confusion and the possibility that we'd automatically pul something
which is not what we expect.

Also, I've removed that condition where building would happen on git
changes only. We now always build (unless an image with that name
already exists). We just force-build when the git repo changes.
2020-11-14 23:00:49 +02:00
..
ext Update settings for Synapse v1.14.0 2020-05-28 15:23:05 +03:00
goofys Allow the matrix user username and groupname to be configured separately 2020-05-01 19:59:32 +02:00
rust-synapse-compress-state Add support for rust-synapse-compress-state 2020-08-21 13:53:39 +03:00
synapse Improve self-building experience (avoid conflict with pullable images) 2020-11-14 23:00:49 +02:00
import_media_store.yml Allow the matrix user username and groupname to be configured separately 2020-05-01 19:59:32 +02:00
init.yml Rename some variables for consistency 2020-03-15 10:15:27 +02:00
main.yml Add support for rust-synapse-compress-state 2020-08-21 13:53:39 +03:00
register_user.yml Use |quote in some command calls 2020-04-24 09:59:30 +03:00
self_check_client_api.yml Run all API self checks in check_mode 2020-07-04 15:24:33 +02:00
self_check_federation_api.yml Run all API self checks in check_mode 2020-07-04 15:24:33 +02:00
setup_synapse.yml Upgrade Synapse (v1.12.4 -> v1.13.0) 2020-05-19 21:35:32 +03:00
update_user_password.yml Remove hardcoded command paths in playbook shell usage 2020-05-27 23:14:56 +02:00
validate_config.yml Upgrade Synapse (v1.18.0 -> v1.19.0) 2020-08-17 17:02:40 +03:00