mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-24 18:08:28 +01:00
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.
This commit is contained in:
parent
32847afb06
commit
5eed874199
@ -6,7 +6,8 @@ matrix_mautrix_facebook_enabled: true
|
|||||||
matrix_mautrix_facebook_container_image_self_build: false
|
matrix_mautrix_facebook_container_image_self_build: false
|
||||||
|
|
||||||
# See: https://mau.dev/tulir/mautrix-facebook/container_registry
|
# See: https://mau.dev/tulir/mautrix-facebook/container_registry
|
||||||
matrix_mautrix_facebook_docker_image: "dock.mau.dev/tulir/mautrix-facebook:latest"
|
matrix_mautrix_facebook_docker_image: "{{ matrix_mautrix_facebook_docker_image_name_prefix }}tulir/mautrix-facebook:latest"
|
||||||
|
matrix_mautrix_facebook_docker_image_name_prefix: "{{ 'localhost/' if matrix_mautrix_facebook_container_image_self_build else 'dock.mau.dev/' }}"
|
||||||
matrix_mautrix_facebook_docker_image_force_pull: "{{ matrix_mautrix_facebook_docker_image.endswith(':latest') }}"
|
matrix_mautrix_facebook_docker_image_force_pull: "{{ matrix_mautrix_facebook_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_mautrix_facebook_base_path: "{{ matrix_base_data_path }}/mautrix-facebook"
|
matrix_mautrix_facebook_base_path: "{{ matrix_base_data_path }}/mautrix-facebook"
|
||||||
|
@ -43,12 +43,12 @@
|
|||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_mautrix_facebook_docker_image }}"
|
name: "{{ matrix_mautrix_facebook_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
force_source: yes
|
force_source: "{{ matrix_mautrix_facebook_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_mautrix_facebook_docker_src_files_path }}"
|
path: "{{ matrix_mautrix_facebook_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_mautrix_facebook_enabled|bool and matrix_mautrix_facebook_container_image_self_build and matrix_mautrix_facebook_git_pull_results.changed"
|
when: "matrix_mautrix_facebook_enabled|bool and matrix_mautrix_facebook_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Check if an old database file already exists
|
- name: Check if an old database file already exists
|
||||||
stat:
|
stat:
|
||||||
|
@ -6,7 +6,8 @@ matrix_mautrix_hangouts_enabled: true
|
|||||||
matrix_mautrix_hangouts_container_image_self_build: false
|
matrix_mautrix_hangouts_container_image_self_build: false
|
||||||
|
|
||||||
# See: https://mau.dev/tulir/mautrix-hangouts/container_registry
|
# See: https://mau.dev/tulir/mautrix-hangouts/container_registry
|
||||||
matrix_mautrix_hangouts_docker_image: "dock.mau.dev/tulir/mautrix-hangouts:latest"
|
matrix_mautrix_hangouts_docker_image: "{{ matrix_mautrix_hangouts_docker_image_name_prefix }}tulir/mautrix-hangouts:latest"
|
||||||
|
matrix_mautrix_hangouts_docker_image_name_prefix: "{{ 'localhost/' if matrix_mautrix_hangouts_container_image_self_build else 'dock.mau.dev/' }}"
|
||||||
matrix_mautrix_hangouts_docker_image_force_pull: "{{ matrix_mautrix_hangouts_docker_image.endswith(':latest') }}"
|
matrix_mautrix_hangouts_docker_image_force_pull: "{{ matrix_mautrix_hangouts_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_mautrix_hangouts_base_path: "{{ matrix_base_data_path }}/mautrix-hangouts"
|
matrix_mautrix_hangouts_base_path: "{{ matrix_base_data_path }}/mautrix-hangouts"
|
||||||
|
@ -36,18 +36,18 @@
|
|||||||
dest: "{{ matrix_mautrix_hangouts_docker_src_files_path }}"
|
dest: "{{ matrix_mautrix_hangouts_docker_src_files_path }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
register: matrix_mautrix_hangouts_git_pull_results
|
register: matrix_mautrix_hangouts_git_pull_results
|
||||||
when: "matrix_mautrix_hangouts_enabled|bool and matrix_mautrix_hangouts_container_image_self_build"
|
when: "matrix_mautrix_hangouts_enabled|bool and matrix_mautrix_hangouts_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure Mautrix Hangouts Docker image is built
|
- name: Ensure Mautrix Hangouts Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_mautrix_hangouts_docker_image }}"
|
name: "{{ matrix_mautrix_hangouts_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
force_source: yes
|
force_source: "{{ matrix_mautrix_hangouts_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_mautrix_hangouts_docker_src_files_path }}"
|
path: "{{ matrix_mautrix_hangouts_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_mautrix_hangouts_enabled|bool and matrix_mautrix_hangouts_container_image_self_build and matrix_mautrix_hangouts_git_pull_results.changed"
|
when: "matrix_mautrix_hangouts_enabled|bool and matrix_mautrix_hangouts_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Check if an old database file already exists
|
- name: Check if an old database file already exists
|
||||||
stat:
|
stat:
|
||||||
|
@ -10,7 +10,8 @@ matrix_mx_puppet_discord_container_image_self_build: false
|
|||||||
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
|
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
|
||||||
matrix_mx_puppet_discord_container_http_host_bind_port: ''
|
matrix_mx_puppet_discord_container_http_host_bind_port: ''
|
||||||
|
|
||||||
matrix_mx_puppet_discord_docker_image: "sorunome/mx-puppet-discord:latest"
|
matrix_mx_puppet_discord_docker_image: "{{ matrix_mx_puppet_discord_docker_image_name_prefix }}sorunome/mx-puppet-discord:latest"
|
||||||
|
matrix_mx_puppet_discord_docker_image_name_prefix: "{{ 'localhost/' if matrix_mx_puppet_discord_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_mx_puppet_discord_docker_image_force_pull: "{{ matrix_mx_puppet_discord_docker_image.endswith(':latest') }}"
|
matrix_mx_puppet_discord_docker_image_force_pull: "{{ matrix_mx_puppet_discord_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_mx_puppet_discord_base_path: "{{ matrix_base_data_path }}/mx-puppet-discord"
|
matrix_mx_puppet_discord_base_path: "{{ matrix_base_data_path }}/mx-puppet-discord"
|
||||||
|
@ -35,17 +35,19 @@
|
|||||||
repo: https://github.com/matrix-discord/mx-puppet-discord.git
|
repo: https://github.com/matrix-discord/mx-puppet-discord.git
|
||||||
dest: "{{ matrix_mx_puppet_discord_docker_src_files_path }}"
|
dest: "{{ matrix_mx_puppet_discord_docker_src_files_path }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
|
register: matrix_mx_puppet_discord_git_pull_results
|
||||||
when: "matrix_mx_puppet_discord_enabled|bool and matrix_mx_puppet_discord_container_image_self_build"
|
when: "matrix_mx_puppet_discord_enabled|bool and matrix_mx_puppet_discord_container_image_self_build"
|
||||||
|
|
||||||
- name: Ensure MX Puppet Discord Docker image is built
|
- name: Ensure MX Puppet Discord Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_mx_puppet_discord_docker_image }}"
|
name: "{{ matrix_mx_puppet_discord_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_mx_puppet_discord_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_mx_puppet_discord_docker_src_files_path }}"
|
path: "{{ matrix_mx_puppet_discord_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_mx_puppet_discord_enabled|bool and matrix_mx_puppet_discord_container_image_self_build"
|
when: "matrix_mx_puppet_discord_enabled|bool and matrix_mx_puppet_discord_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Check if an old database file already exists
|
- name: Check if an old database file already exists
|
||||||
stat:
|
stat:
|
||||||
|
@ -5,7 +5,8 @@ matrix_mx_puppet_instagram_enabled: true
|
|||||||
|
|
||||||
matrix_mx_puppet_instagram_container_image_self_build: false
|
matrix_mx_puppet_instagram_container_image_self_build: false
|
||||||
|
|
||||||
matrix_mx_puppet_instagram_docker_image: "docker.io/sorunome/mx-puppet-instagram:latest"
|
matrix_mx_puppet_instagram_docker_image: "{{ matrix_mx_puppet_instagram_docker_image_name_prefix }}sorunome/mx-puppet-instagram:latest"
|
||||||
|
matrix_mx_puppet_instagram_docker_image_name_prefix: "{{ 'localhost/' if matrix_mx_puppet_instagram_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_mx_puppet_instagram_docker_image_force_pull: "{{ matrix_mx_puppet_instagram_docker_image.endswith(':latest') }}"
|
matrix_mx_puppet_instagram_docker_image_force_pull: "{{ matrix_mx_puppet_instagram_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_mx_puppet_instagram_base_path: "{{ matrix_base_data_path }}/mx-puppet-instagram"
|
matrix_mx_puppet_instagram_base_path: "{{ matrix_base_data_path }}/mx-puppet-instagram"
|
||||||
|
@ -35,17 +35,19 @@
|
|||||||
repo: https://github.com/Sorunome/mx-puppet-instagram.git
|
repo: https://github.com/Sorunome/mx-puppet-instagram.git
|
||||||
dest: "{{ matrix_mx_puppet_instagram_docker_src_files_path }}"
|
dest: "{{ matrix_mx_puppet_instagram_docker_src_files_path }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
when: "matrix_mx_puppet_instagram_enabled|bool and matrix_mx_puppet_instagram_container_image_self_build"
|
register: matrix_mx_puppet_instagram_git_pull_results
|
||||||
|
when: "matrix_mx_puppet_instagram_enabled|bool and matrix_mx_puppet_instagram_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure mx-puppet-instagram Docker image is built
|
- name: Ensure mx-puppet-instagram Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_mx_puppet_instagram_docker_image }}"
|
name: "{{ matrix_mx_puppet_instagram_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_mx_puppet_instagram_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_mx_puppet_instagram_docker_src_files_path }}"
|
path: "{{ matrix_mx_puppet_instagram_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_mx_puppet_instagram_enabled|bool and matrix_mx_puppet_instagram_container_image_self_build"
|
when: "matrix_mx_puppet_instagram_enabled|bool and matrix_mx_puppet_instagram_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure mx-puppet-instagram config.yaml installed
|
- name: Ensure mx-puppet-instagram config.yaml installed
|
||||||
copy:
|
copy:
|
||||||
|
@ -5,7 +5,8 @@ matrix_mx_puppet_skype_enabled: true
|
|||||||
|
|
||||||
matrix_mx_puppet_skype_container_image_self_build: false
|
matrix_mx_puppet_skype_container_image_self_build: false
|
||||||
|
|
||||||
matrix_mx_puppet_skype_docker_image: "sorunome/mx-puppet-skype:latest"
|
matrix_mx_puppet_skype_docker_image: "{{ matrix_mx_puppet_skype_docker_image_name_prefix }}sorunome/mx-puppet-skype:latest"
|
||||||
|
matrix_mx_puppet_skype_docker_image_name_prefix: "{{ 'localhost/' if matrix_mx_puppet_skype_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_mx_puppet_skype_docker_image_force_pull: "{{ matrix_mx_puppet_skype_docker_image.endswith(':latest') }}"
|
matrix_mx_puppet_skype_docker_image_force_pull: "{{ matrix_mx_puppet_skype_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_mx_puppet_skype_base_path: "{{ matrix_base_data_path }}/mx-puppet-skype"
|
matrix_mx_puppet_skype_base_path: "{{ matrix_base_data_path }}/mx-puppet-skype"
|
||||||
|
@ -36,18 +36,18 @@
|
|||||||
dest: "{{ matrix_mx_puppet_skype_docker_src_files_path }}"
|
dest: "{{ matrix_mx_puppet_skype_docker_src_files_path }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
register: matrix_mx_puppet_skype_git_pull_results
|
register: matrix_mx_puppet_skype_git_pull_results
|
||||||
when: "matrix_mx_puppet_skype_enabled|bool and matrix_mx_puppet_skype_container_image_self_build"
|
when: "matrix_mx_puppet_skype_enabled|bool and matrix_mx_puppet_skype_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure MX Puppet Skype Docker image is built
|
- name: Ensure MX Puppet Skype Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_mx_puppet_skype_docker_image }}"
|
name: "{{ matrix_mx_puppet_skype_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
force_source: yes
|
force_source: "{{ matrix_mx_puppet_skype_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_mx_puppet_skype_docker_src_files_path }}"
|
path: "{{ matrix_mx_puppet_skype_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_mx_puppet_skype_enabled|bool and matrix_mx_puppet_skype_container_image_self_build and matrix_mx_puppet_skype_git_pull_results.changed"
|
when: "matrix_mx_puppet_skype_enabled|bool and matrix_mx_puppet_skype_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Check if an old database file already exists
|
- name: Check if an old database file already exists
|
||||||
stat:
|
stat:
|
||||||
|
@ -10,7 +10,8 @@ matrix_mx_puppet_slack_container_image_self_build: false
|
|||||||
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
|
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
|
||||||
matrix_mx_puppet_slack_container_http_host_bind_port: ''
|
matrix_mx_puppet_slack_container_http_host_bind_port: ''
|
||||||
|
|
||||||
matrix_mx_puppet_slack_docker_image: "sorunome/mx-puppet-slack:latest"
|
matrix_mx_puppet_slack_docker_image: "{{ matrix_mx_puppet_slack_docker_image_name_prefix }}sorunome/mx-puppet-slack:latest"
|
||||||
|
matrix_mx_puppet_slack_docker_image_name_prefix: "{{ 'localhost/' if matrix_mx_puppet_slack_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_mx_puppet_slack_docker_image_force_pull: "{{ matrix_mx_puppet_slack_docker_image.endswith(':latest') }}"
|
matrix_mx_puppet_slack_docker_image_force_pull: "{{ matrix_mx_puppet_slack_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_mx_puppet_slack_base_path: "{{ matrix_base_data_path }}/mx-puppet-slack"
|
matrix_mx_puppet_slack_base_path: "{{ matrix_base_data_path }}/mx-puppet-slack"
|
||||||
|
@ -35,12 +35,14 @@
|
|||||||
repo: https://github.com/Sorunome/mx-puppet-slack.git
|
repo: https://github.com/Sorunome/mx-puppet-slack.git
|
||||||
dest: "{{ matrix_mx_puppet_slack_docker_src_files_path }}"
|
dest: "{{ matrix_mx_puppet_slack_docker_src_files_path }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
|
register: matrix_mx_puppet_slack_git_pull_results
|
||||||
when: "matrix_mx_puppet_slack_enabled|bool and matrix_mx_puppet_slack_container_image_self_build"
|
when: "matrix_mx_puppet_slack_enabled|bool and matrix_mx_puppet_slack_container_image_self_build"
|
||||||
|
|
||||||
- name: Ensure MX Puppet Slack Docker image is built
|
- name: Ensure MX Puppet Slack Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_mx_puppet_slack_docker_image }}"
|
name: "{{ matrix_mx_puppet_slack_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_mx_puppet_slack_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_mx_puppet_slack_docker_src_files_path }}"
|
path: "{{ matrix_mx_puppet_slack_docker_src_files_path }}"
|
||||||
|
@ -10,7 +10,8 @@ matrix_mx_puppet_steam_container_image_self_build: false
|
|||||||
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
|
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
|
||||||
matrix_mx_puppet_steam_container_http_host_bind_port: ''
|
matrix_mx_puppet_steam_container_http_host_bind_port: ''
|
||||||
|
|
||||||
matrix_mx_puppet_steam_docker_image: "icewind1991/mx-puppet-steam:latest"
|
matrix_mx_puppet_steam_docker_image: "{{ matrix_mx_puppet_steam_docker_image_name_prefix }}icewind1991/mx-puppet-steam:latest"
|
||||||
|
matrix_mx_puppet_steam_docker_image_name_prefix: "{{ 'localhost/' if matrix_mx_puppet_steam_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_mx_puppet_steam_docker_image_force_pull: "{{ matrix_mx_puppet_steam_docker_image.endswith(':latest') }}"
|
matrix_mx_puppet_steam_docker_image_force_pull: "{{ matrix_mx_puppet_steam_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_mx_puppet_steam_base_path: "{{ matrix_base_data_path }}/mx-puppet-steam"
|
matrix_mx_puppet_steam_base_path: "{{ matrix_base_data_path }}/mx-puppet-steam"
|
||||||
|
@ -35,12 +35,14 @@
|
|||||||
repo: https://github.com/icewind1991/mx-puppet-steam.git
|
repo: https://github.com/icewind1991/mx-puppet-steam.git
|
||||||
dest: "{{ matrix_mx_puppet_steam_docker_src_files_path }}"
|
dest: "{{ matrix_mx_puppet_steam_docker_src_files_path }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
|
register: matrix_mx_puppet_steam_git_pull_results
|
||||||
when: "matrix_mx_puppet_steam_enabled|bool and matrix_mx_puppet_steam_container_image_self_build"
|
when: "matrix_mx_puppet_steam_enabled|bool and matrix_mx_puppet_steam_container_image_self_build"
|
||||||
|
|
||||||
- name: Ensure MX Puppet Steam Docker image is built
|
- name: Ensure MX Puppet Steam Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_mx_puppet_steam_docker_image }}"
|
name: "{{ matrix_mx_puppet_steam_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_mx_puppet_steam_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_mx_puppet_steam_docker_src_files_path }}"
|
path: "{{ matrix_mx_puppet_steam_docker_src_files_path }}"
|
||||||
|
@ -10,7 +10,8 @@ matrix_mx_puppet_twitter_container_image_self_build: false
|
|||||||
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
|
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
|
||||||
matrix_mx_puppet_twitter_container_http_host_bind_port: ''
|
matrix_mx_puppet_twitter_container_http_host_bind_port: ''
|
||||||
|
|
||||||
matrix_mx_puppet_twitter_docker_image: "sorunome/mx-puppet-twitter:latest"
|
matrix_mx_puppet_twitter_docker_image: "{{ matrix_mx_puppet_twitter_docker_image_name_prefix }}sorunome/mx-puppet-twitter:latest"
|
||||||
|
matrix_mx_puppet_twitter_docker_image_name_prefix: "{{ 'localhost/' if matrix_mx_puppet_twitter_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_mx_puppet_twitter_docker_image_force_pull: "{{ matrix_mx_puppet_twitter_docker_image.endswith(':latest') }}"
|
matrix_mx_puppet_twitter_docker_image_force_pull: "{{ matrix_mx_puppet_twitter_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_mx_puppet_twitter_base_path: "{{ matrix_base_data_path }}/mx-puppet-twitter"
|
matrix_mx_puppet_twitter_base_path: "{{ matrix_base_data_path }}/mx-puppet-twitter"
|
||||||
|
@ -35,12 +35,14 @@
|
|||||||
repo: https://github.com/Sorunome/mx-puppet-twitter.git
|
repo: https://github.com/Sorunome/mx-puppet-twitter.git
|
||||||
dest: "{{ matrix_mx_puppet_twitter_docker_src_files_path }}"
|
dest: "{{ matrix_mx_puppet_twitter_docker_src_files_path }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
|
register: matrix_mx_puppet_twitter_git_pull_results
|
||||||
when: "matrix_mx_puppet_twitter_enabled|bool and matrix_mx_puppet_twitter_container_image_self_build"
|
when: "matrix_mx_puppet_twitter_enabled|bool and matrix_mx_puppet_twitter_container_image_self_build"
|
||||||
|
|
||||||
- name: Ensure MX Puppet Twitter Docker image is built
|
- name: Ensure MX Puppet Twitter Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_mx_puppet_twitter_docker_image }}"
|
name: "{{ matrix_mx_puppet_twitter_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_mx_puppet_twitter_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_mx_puppet_twitter_docker_src_files_path }}"
|
path: "{{ matrix_mx_puppet_twitter_docker_src_files_path }}"
|
||||||
|
@ -2,7 +2,8 @@ matrix_client_element_enabled: true
|
|||||||
|
|
||||||
matrix_client_element_container_image_self_build: false
|
matrix_client_element_container_image_self_build: false
|
||||||
|
|
||||||
matrix_client_element_docker_image: "vectorim/element-web:v1.7.13"
|
matrix_client_element_docker_image: "{{ matrix_client_element_docker_image_name_prefix }}vectorim/element-web:v1.7.13"
|
||||||
|
matrix_client_element_docker_image_name_prefix: "{{ 'localhost/' if matrix_client_element_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_client_element_docker_image_force_pull: "{{ matrix_client_element_docker_image.endswith(':latest') }}"
|
matrix_client_element_docker_image_force_pull: "{{ matrix_client_element_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_client_element_data_path: "{{ matrix_base_data_path }}/client-element"
|
matrix_client_element_data_path: "{{ matrix_base_data_path }}/client-element"
|
||||||
|
@ -30,17 +30,19 @@
|
|||||||
dest: "{{ matrix_client_element_docker_src_files_path }}"
|
dest: "{{ matrix_client_element_docker_src_files_path }}"
|
||||||
version: "{{ matrix_client_element_docker_image.split(':')[1] }}"
|
version: "{{ matrix_client_element_docker_image.split(':')[1] }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
when: "matrix_client_element_enabled|bool and matrix_client_element_container_image_self_build"
|
register: matrix_client_element_git_pull_results
|
||||||
|
when: "matrix_client_element_enabled|bool and matrix_client_element_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure Element Docker image is built
|
- name: Ensure Element Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_client_element_docker_image }}"
|
name: "{{ matrix_client_element_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_client_element_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_client_element_docker_src_files_path }}"
|
path: "{{ matrix_client_element_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_client_element_enabled|bool and matrix_client_element_container_image_self_build"
|
when: "matrix_client_element_enabled|bool and matrix_client_element_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure Element configuration installed
|
- name: Ensure Element configuration installed
|
||||||
copy:
|
copy:
|
||||||
|
@ -2,7 +2,8 @@ matrix_coturn_enabled: true
|
|||||||
|
|
||||||
matrix_coturn_container_image_self_build: false
|
matrix_coturn_container_image_self_build: false
|
||||||
|
|
||||||
matrix_coturn_docker_image: "instrumentisto/coturn:4.5.1.3"
|
matrix_coturn_docker_image: "{{ matrix_coturn_docker_image_name_prefix }}instrumentisto/coturn:4.5.1.3"
|
||||||
|
matrix_coturn_docker_image_name_prefix: "{{ 'localhost/' if matrix_coturn_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_coturn_docker_image_force_pull: "{{ matrix_coturn_docker_image.endswith(':latest') }}"
|
matrix_coturn_docker_image_force_pull: "{{ matrix_coturn_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
# The Docker network that Coturn would be put into.
|
# The Docker network that Coturn would be put into.
|
||||||
|
@ -29,17 +29,19 @@
|
|||||||
dest: "{{ matrix_coturn_docker_src_files_path }}"
|
dest: "{{ matrix_coturn_docker_src_files_path }}"
|
||||||
version: "{{ matrix_coturn_docker_image.split(':')[1] }}"
|
version: "{{ matrix_coturn_docker_image.split(':')[1] }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
|
register: matrix_coturn_git_pull_results
|
||||||
when: "matrix_coturn_enabled|bool and matrix_coturn_container_image_self_build"
|
when: "matrix_coturn_enabled|bool and matrix_coturn_container_image_self_build"
|
||||||
|
|
||||||
- name: Ensure Coturn Docker image is built
|
- name: Ensure Coturn Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_coturn_docker_image }}"
|
name: "{{ matrix_coturn_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_coturn_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_coturn_docker_src_files_path }}"
|
path: "{{ matrix_coturn_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_coturn_enabled|bool and matrix_coturn_container_image_self_build"
|
when: "matrix_coturn_enabled|bool and matrix_coturn_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure Coturn configuration path exists
|
- name: Ensure Coturn configuration path exists
|
||||||
file:
|
file:
|
||||||
|
@ -5,7 +5,9 @@ matrix_dynamic_dns_enabled: true
|
|||||||
matrix_dynamic_dns_daemon_interval: '300'
|
matrix_dynamic_dns_daemon_interval: '300'
|
||||||
|
|
||||||
# The docker container to use when in mode
|
# The docker container to use when in mode
|
||||||
matrix_dynamic_dns_docker_image: 'linuxserver/ddclient:v3.9.1-ls45'
|
matrix_dynamic_dns_docker_image: '{{ matrix_dynamic_dns_docker_image_name_prefix }}linuxserver/ddclient:v3.9.1-ls45'
|
||||||
|
|
||||||
|
matrix_dynamic_dns_docker_image_name_prefix: "{{ 'localhost/' if matrix_dynamic_dns_container_image_self_build else 'docker.io/' }}"
|
||||||
|
|
||||||
# The image to force pull
|
# The image to force pull
|
||||||
matrix_dynamic_dns_docker_image_force_pull: "{{ matrix_dynamic_dns_docker_image.endswith(':latest') }}"
|
matrix_dynamic_dns_docker_image_force_pull: "{{ matrix_dynamic_dns_docker_image.endswith(':latest') }}"
|
||||||
|
@ -26,17 +26,19 @@
|
|||||||
repo: https://github.com/linuxserver/docker-ddclient.git
|
repo: https://github.com/linuxserver/docker-ddclient.git
|
||||||
dest: "{{ matrix_dynamic_dns_docker_src_files_path }}"
|
dest: "{{ matrix_dynamic_dns_docker_src_files_path }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
when: "matrix_dynamic_dns_enabled|bool and matrix_dynamic_dns_container_image_self_build"
|
register: matrix_dynamic_dns_git_pull_results
|
||||||
|
when: "matrix_dynamic_dns_enabled|bool and matrix_dynamic_dns_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure Dynamic DNS Docker image is built
|
- name: Ensure Dynamic DNS Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_dynamic_dns_docker_image }}"
|
name: "{{ matrix_dynamic_dns_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_dynamic_dns_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_dynamic_dns_docker_src_files_path }}"
|
path: "{{ matrix_dynamic_dns_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_dynamic_dns_enabled|bool and matrix_dynamic_dns_container_image_self_build"
|
when: "matrix_dynamic_dns_enabled|bool and matrix_dynamic_dns_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure Dynamic DNS ddclient.conf installed
|
- name: Ensure Dynamic DNS ddclient.conf installed
|
||||||
template:
|
template:
|
||||||
|
@ -7,7 +7,8 @@ matrix_ma1sd_container_image_self_build: false
|
|||||||
|
|
||||||
matrix_ma1sd_architecture: "amd64"
|
matrix_ma1sd_architecture: "amd64"
|
||||||
|
|
||||||
matrix_ma1sd_docker_image: "ma1uta/ma1sd:2.4.0-{{ matrix_ma1sd_architecture }}"
|
matrix_ma1sd_docker_image: "{{ matrix_ma1sd_docker_image_name_prefix }}ma1uta/ma1sd:2.4.0-{{ matrix_ma1sd_architecture }}"
|
||||||
|
matrix_ma1sd_docker_image_name_prefix: "{{ 'localhost/' if matrix_ma1sd_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_ma1sd_docker_image_force_pull: "{{ matrix_ma1sd_docker_image.endswith(':latest') }}"
|
matrix_ma1sd_docker_image_force_pull: "{{ matrix_ma1sd_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_ma1sd_base_path: "{{ matrix_base_data_path }}/ma1sd"
|
matrix_ma1sd_base_path: "{{ matrix_base_data_path }}/ma1sd"
|
||||||
|
@ -56,6 +56,7 @@
|
|||||||
dest: "{{ matrix_ma1sd_docker_src_files_path }}"
|
dest: "{{ matrix_ma1sd_docker_src_files_path }}"
|
||||||
version: "{{ matrix_ma1sd_docker_image.split(':')[1].split('-')[0] }}"
|
version: "{{ matrix_ma1sd_docker_image.split(':')[1].split('-')[0] }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
|
register: matrix_ma1sd_git_pull_results
|
||||||
|
|
||||||
- name: Ensure ma1sd Docker image is built
|
- name: Ensure ma1sd Docker image is built
|
||||||
shell: "./gradlew dockerBuild"
|
shell: "./gradlew dockerBuild"
|
||||||
@ -64,7 +65,10 @@
|
|||||||
|
|
||||||
- name: Ensure ma1sd Docker image is tagged correctly
|
- name: Ensure ma1sd Docker image is tagged correctly
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_ma1sd_docker_image.split('-')[0] }}"
|
# The build script always tags the image with something like `ma1uta/ma1sd:2.4.0`.
|
||||||
|
# Remove the `-{{ matrix_ma1sd_architecture }}` suffix and our `localhost/` prefix (applied when self-building)
|
||||||
|
# to get to what has actually been built, so we can retag it as `{{ matrix_ma1sd_docker_image }}`.
|
||||||
|
name: "{{ matrix_ma1sd_docker_image.split('-')[0].replace('localhost/', '') }}"
|
||||||
repository: "{{ matrix_ma1sd_docker_image }}"
|
repository: "{{ matrix_ma1sd_docker_image }}"
|
||||||
force_tag: yes
|
force_tag: yes
|
||||||
source: local
|
source: local
|
||||||
|
@ -7,7 +7,8 @@ matrix_mailer_container_image_self_build_repository_url: "https://github.com/dev
|
|||||||
matrix_mailer_container_image_self_build_src_files_path: "{{ matrix_mailer_base_path }}/docker-src"
|
matrix_mailer_container_image_self_build_src_files_path: "{{ matrix_mailer_base_path }}/docker-src"
|
||||||
matrix_mailer_container_image_self_build_version: "{{ matrix_mailer_docker_image.split(':')[1] }}"
|
matrix_mailer_container_image_self_build_version: "{{ matrix_mailer_docker_image.split(':')[1] }}"
|
||||||
|
|
||||||
matrix_mailer_docker_image: "devture/exim-relay:4.93.1-r0"
|
matrix_mailer_docker_image: "{{ matrix_mailer_docker_image_name_prefix }}devture/exim-relay:4.93.1-r0"
|
||||||
|
matrix_mailer_docker_image_name_prefix: "{{ 'localhost/' if matrix_mailer_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_mailer_docker_image_force_pull: "{{ matrix_mailer_docker_image.endswith(':latest') }}"
|
matrix_mailer_docker_image_force_pull: "{{ matrix_mailer_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
# The user/group that the container runs with.
|
# The user/group that the container runs with.
|
||||||
|
@ -29,12 +29,14 @@
|
|||||||
dest: "{{ matrix_mailer_container_image_self_build_src_files_path }}"
|
dest: "{{ matrix_mailer_container_image_self_build_src_files_path }}"
|
||||||
version: "{{ matrix_mailer_container_image_self_build_version }}"
|
version: "{{ matrix_mailer_container_image_self_build_version }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
when: "matrix_mailer_container_image_self_build|bool"
|
register: matrix_mailer_git_pull_results
|
||||||
|
when: "matrix_mailer_enabled|bool and matrix_mailer_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure exim-relay Docker image is built
|
- name: Ensure exim-relay Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_mailer_docker_image }}"
|
name: "{{ matrix_mailer_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_mailer_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_mailer_container_image_self_build_src_files_path }}"
|
path: "{{ matrix_mailer_container_image_self_build_src_files_path }}"
|
||||||
|
@ -12,7 +12,8 @@ matrix_registration_docker_src_files_path: "{{ matrix_registration_base_path }}/
|
|||||||
|
|
||||||
matrix_registration_version: "v0.7.0"
|
matrix_registration_version: "v0.7.0"
|
||||||
|
|
||||||
matrix_registration_docker_image: "devture/zeratax-matrix-registration:{{ matrix_registration_version }}"
|
matrix_registration_docker_image: "{{ matrix_registration_docker_image_name_prefix }}devture/zeratax-matrix-registration:{{ matrix_registration_version }}"
|
||||||
|
matrix_registration_docker_image_name_prefix: "{{ 'localhost/' if matrix_registration_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_registration_docker_image_force_pull: "{{ matrix_registration_docker_image.endswith(':latest') }}"
|
matrix_registration_docker_image_force_pull: "{{ matrix_registration_docker_image.endswith(':latest') }}"
|
||||||
matrix_registration_docker_repo: "https://github.com/ZerataX/matrix-registration"
|
matrix_registration_docker_repo: "https://github.com/ZerataX/matrix-registration"
|
||||||
|
|
||||||
|
@ -39,12 +39,12 @@
|
|||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_registration_docker_image }}"
|
name: "{{ matrix_registration_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
force_source: yes
|
force_source: "{{ matrix_registration_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_registration_docker_src_files_path }}"
|
path: "{{ matrix_registration_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_registration_enabled|bool and matrix_registration_container_image_self_build|bool and matrix_registration_git_pull_results.changed"
|
when: "matrix_registration_enabled|bool and matrix_registration_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure matrix-registration config installed
|
- name: Ensure matrix-registration config installed
|
||||||
copy:
|
copy:
|
||||||
|
@ -7,7 +7,8 @@ matrix_synapse_admin_container_self_build: false
|
|||||||
matrix_synapse_admin_docker_repo: "https://github.com/Awesome-Technologies/synapse-admin.git"
|
matrix_synapse_admin_docker_repo: "https://github.com/Awesome-Technologies/synapse-admin.git"
|
||||||
matrix_synapse_admin_docker_src_files_path: "{{ matrix_base_data_path }}/synapse-admin/docker-src"
|
matrix_synapse_admin_docker_src_files_path: "{{ matrix_base_data_path }}/synapse-admin/docker-src"
|
||||||
|
|
||||||
matrix_synapse_admin_docker_image: "awesometechnologies/synapse-admin:0.5.0"
|
matrix_synapse_admin_docker_image: "{{ matrix_synapse_admin_docker_image_name_prefix }}awesometechnologies/synapse-admin:0.5.0"
|
||||||
|
matrix_synapse_admin_docker_image_name_prefix: "{{ 'localhost/' if matrix_synapse_admin_container_self_build else 'docker.io/' }}"
|
||||||
matrix_synapse_admin_docker_image_force_pull: "{{ matrix_synapse_admin_docker_image.endswith(':latest') }}"
|
matrix_synapse_admin_docker_image_force_pull: "{{ matrix_synapse_admin_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
# A list of extra arguments to pass to the container
|
# A list of extra arguments to pass to the container
|
||||||
|
@ -24,12 +24,12 @@
|
|||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_synapse_admin_docker_image }}"
|
name: "{{ matrix_synapse_admin_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
force_source: yes
|
force_source: "{{ matrix_synapse_admin_git_pull_results }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
path: "{{ matrix_synapse_admin_docker_src_files_path }}"
|
path: "{{ matrix_synapse_admin_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_synapse_admin_enabled|bool and matrix_synapse_admin_container_self_build|bool and matrix_synapse_admin_git_pull_results.changed"
|
when: "matrix_synapse_admin_enabled|bool and matrix_synapse_admin_container_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure matrix-synapse-admin.service installed
|
- name: Ensure matrix-synapse-admin.service installed
|
||||||
template:
|
template:
|
||||||
|
@ -5,7 +5,8 @@ matrix_synapse_enabled: true
|
|||||||
|
|
||||||
matrix_synapse_container_image_self_build: false
|
matrix_synapse_container_image_self_build: false
|
||||||
|
|
||||||
matrix_synapse_docker_image: "matrixdotorg/synapse:v1.22.1"
|
matrix_synapse_docker_image: "{{ matrix_synapse_docker_image_name_prefix }}matrixdotorg/synapse:v1.22.1"
|
||||||
|
matrix_synapse_docker_image_name_prefix: "{{ 'localhost/' if matrix_synapse_container_image_self_build else 'docker.io/' }}"
|
||||||
matrix_synapse_docker_image_force_pull: "{{ matrix_synapse_docker_image.endswith(':latest') }}"
|
matrix_synapse_docker_image_force_pull: "{{ matrix_synapse_docker_image.endswith(':latest') }}"
|
||||||
|
|
||||||
matrix_synapse_base_path: "{{ matrix_base_data_path }}/synapse"
|
matrix_synapse_base_path: "{{ matrix_base_data_path }}/synapse"
|
||||||
|
@ -24,17 +24,19 @@
|
|||||||
dest: "{{ matrix_synapse_docker_src_files_path }}"
|
dest: "{{ matrix_synapse_docker_src_files_path }}"
|
||||||
version: "{{ matrix_synapse_docker_image.split(':')[1] }}"
|
version: "{{ matrix_synapse_docker_image.split(':')[1] }}"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
when: "matrix_synapse_container_image_self_build"
|
register: matrix_synapse_git_pull_results
|
||||||
|
when: "matrix_synapse_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure Synapse Docker image is built
|
- name: Ensure Synapse Docker image is built
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_synapse_docker_image }}"
|
name: "{{ matrix_synapse_docker_image }}"
|
||||||
source: build
|
source: build
|
||||||
|
force_source: "{{ matrix_synapse_git_pull_results.changed }}"
|
||||||
build:
|
build:
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
path: "{{ matrix_synapse_docker_src_files_path }}"
|
path: "{{ matrix_synapse_docker_src_files_path }}"
|
||||||
pull: yes
|
pull: yes
|
||||||
when: "matrix_synapse_container_image_self_build"
|
when: "matrix_synapse_container_image_self_build|bool"
|
||||||
|
|
||||||
- name: Ensure Synapse Docker image is pulled
|
- name: Ensure Synapse Docker image is pulled
|
||||||
docker_image:
|
docker_image:
|
||||||
|
Loading…
Reference in New Issue
Block a user