gerritlib/tools/docker-compose.yaml
Clark Boylan 070449f22f Test gerrit lib (and jeepyb) against Gerrit 3.10.3
This is what we recently updated to in production and 3.11/latest is
known to have extra setup steps we need to sort out. Catch up with
production then we'll sort out what the newer Gerrit version needs.

Change-Id: I5f90637ec947ae4776848f9fb70e352ab210ea62
2024-12-06 10:10:53 -08:00

34 lines
1.2 KiB
YAML

# Version 2 is the latest that is supported by docker-compose in
# Ubuntu Xenial.
version: '2'
services:
gerrit:
# TODO update to latest after we sort out 3.11 bootstrapping
image: gerritcodereview/gerrit:3.10.3
ports:
- "8080:8080"
- "29418:29418"
command: |
/bin/sh -c '\
git config -f /var/gerrit/etc/gerrit.config gerrit.canonicalWebUrl http://localhost:8080/ && \
git config -f /var/gerrit/etc/gerrit.config gerrit.ui POLYGERRIT && \
git config -f /var/gerrit/etc/gerrit.config sendemail.enable false && \
git config -f /var/gerrit/etc/gerrit.config noteDb.changes.autoMigrate true && \
/var/gerrit/bin/gerrit.sh run'
gerritconfig:
# TODO(clarkb) use an ansible specific image?
image: zuul/zuul-executor
environment:
- http_proxy
- https_proxy
- no_proxy=${no_proxy},gerrit
depends_on:
- gerrit
volumes:
- "./sshkey:/var/ssh:z"
- "./playbooks/:/var/playbooks/:z"
# NOTE(pabelanger): Be sure to update this line each time we change the
# default version of ansible for Zuul.
command: "/usr/local/lib/zuul/ansible/6/bin/ansible-playbook /var/playbooks/setup.yaml"