Update the gerritbot-matrix image to support arbitrary uid

This change pulls in https://softwarefactory-project.io/r/c/software-factory/gerritbot-matrix/+/23196
to achieve abritary uid.

Change-Id: I973b1621aad3ed5ca9d65611ff87fa8124e2fd55
This commit is contained in:
Tristan Cacqueray 2021-11-19 21:44:13 +00:00
parent ee9cec707b
commit 91783d0380
2 changed files with 3 additions and 10 deletions

View File

@ -1,6 +1,6 @@
gerritbot_gid: 11000
gerritbot_uid: 11000
gerritbot_matrix_version: 4aeeac8
gerritbot_matrix_version: g2wr8krm32cp8afrw9qq3cxilsy2nsk0
gerritbot_matrix_image: quay.io/software-factory/gerritbot-matrix:{{ gerritbot_matrix_version }}
gerritbot_matrix_prometheus_port: 9001

View File

@ -6,14 +6,7 @@ services:
gerritbot-matrix:
image: {{ gerritbot_matrix_image }}
network_mode: host
# Temporarily (I hope) undo the gerritbot user override as the process
# complains with:
# 2021-11-19 17:50:14.995 [ThreadId 4]: Session created for: UserID "@gerrit:opendev.org"
#
# Warning: Could not get or create the default cache directory:
#
# gerritbot-matrix: <stderr>: hPutChar: invalid argument (invalid character)
#user: "{{ gerritbot_uid }}:{{ gerritbot_gid }}"
user: "{{ gerritbot_uid }}:{{ gerritbot_gid }}"
restart: always
logging:
driver: syslog
@ -24,7 +17,7 @@ services:
MATRIX_IDENTITY_TOKEN: {{ gerritbot_matrix_identity_token }}
volumes:
- /var/lib/matrix-gerritbot/config:/config:ro
- /var/lib/matrix-gerritbot/ssh:/root/.ssh:ro
- /var/lib/matrix-gerritbot/ssh:/home/bot/.ssh:ro
healthcheck:
test: "gerritbot-matrix check {{ gerritbot_matrix_prometheus_port }}"
retries: 6