![James E. Blair](/assets/img/avatar_default.png)
Ansible 6 is EOL and Ansible 9 is available. Remove 6 and add 9. This is usually done in two changes, but this time it's in one since we can just rotate the 6 around to make it a 9. command.py has been updated for ansible 9. Change-Id: I537667f66ba321d057b6637aa4885e48c8b96f04
186 lines
4.7 KiB
YAML
186 lines
4.7 KiB
YAML
version: '2.1'
|
|
|
|
services:
|
|
gerrit:
|
|
image: docker.io/gerritcodereview/gerrit
|
|
ports:
|
|
- "8080:8080"
|
|
- "29418:29418"
|
|
environment:
|
|
- CANONICAL_WEB_URL=http://localhost:8080/
|
|
networks:
|
|
- zuul
|
|
volumes:
|
|
- "gerrit-etc:/var/gerrit/etc"
|
|
- "gerrit-db:/var/gerrit/db"
|
|
- "gerrit-git:/var/gerrit/git"
|
|
- "gerrit-index:/var/gerrit/index"
|
|
- "gerrit-cache:/var/gerrit/cache"
|
|
gerritconfig:
|
|
image: quay.io/zuul-ci/zuul-executor
|
|
environment:
|
|
- http_proxy
|
|
- https_proxy
|
|
- no_proxy=${no_proxy},gerrit
|
|
depends_on:
|
|
- gerrit
|
|
volumes:
|
|
- "sshkey:/var/ssh:z"
|
|
- "nodessh:/var/node:z"
|
|
- "./playbooks/:/var/playbooks/:z"
|
|
- "certs:/var/certs:z"
|
|
- "../../../tools/:/var/zuul-tools/:z"
|
|
- "lib-zuul-executor:/var/lib/zuul: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/8/bin/ansible-playbook /var/playbooks/setup.yaml"
|
|
networks:
|
|
- zuul
|
|
zk:
|
|
image: docker.io/zookeeper
|
|
hostname: examples_zk_1.examples_default
|
|
volumes:
|
|
- "./playbooks/:/var/playbooks/:z"
|
|
- "certs:/var/certs:z"
|
|
- "./zoo.cfg:/conf/zoo.cfg:z"
|
|
- "zk-data:/data"
|
|
- "zk-datalog:/datalog"
|
|
command: "sh -c '/var/playbooks/wait-to-start-certs.sh && exec zkServer.sh start-foreground'"
|
|
networks:
|
|
- zuul
|
|
mysql:
|
|
image: docker.io/mariadb
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: rootpassword
|
|
MYSQL_DATABASE: zuul
|
|
MYSQL_USER: zuul
|
|
MYSQL_PASSWORD: secret
|
|
# Work around slow db startup when writing TZINFO data.
|
|
MYSQL_INITDB_SKIP_TZINFO: 1
|
|
volumes:
|
|
- "lib-mysql:/var/lib/mysql"
|
|
networks:
|
|
- zuul
|
|
scheduler:
|
|
depends_on:
|
|
- zk
|
|
- mysql
|
|
environment:
|
|
- http_proxy
|
|
- https_proxy
|
|
- no_proxy=${no_proxy},gerrit
|
|
- ZUUL_MYSQL_PASSWORD=secret
|
|
command: |
|
|
sh -c '/var/playbooks/wait-to-start-certs.sh && \
|
|
/var/playbooks/wait-to-start.sh && \
|
|
exec zuul-scheduler -f'
|
|
# FIXME: The scheduler has no ansible anymore so use the executor image.
|
|
# This needs to be changes such that ansible is not required for startup.
|
|
image: quay.io/zuul-ci/zuul-scheduler
|
|
volumes:
|
|
- "${ZUUL_TUTORIAL_CONFIG:-./etc_zuul/}:/etc/zuul/:z"
|
|
- "./playbooks/:/var/playbooks/:z"
|
|
- "sshkey:/var/ssh:z"
|
|
- "certs:/var/certs:z"
|
|
- "lib-zuul-scheduler:/var/lib/zuul"
|
|
networks:
|
|
- zuul
|
|
web:
|
|
command: |
|
|
sh -c '/var/playbooks/wait-to-start-certs.sh && \
|
|
exec zuul-web -f'
|
|
depends_on:
|
|
- scheduler
|
|
- mysql
|
|
ports:
|
|
- "9000:9000"
|
|
image: quay.io/zuul-ci/zuul-web
|
|
environment:
|
|
ZUUL_MYSQL_PASSWORD: secret
|
|
volumes:
|
|
- "${ZUUL_TUTORIAL_CONFIG:-./etc_zuul/}:/etc/zuul/:z"
|
|
- "./playbooks/:/var/playbooks/:z"
|
|
- "certs:/var/certs:z"
|
|
- "lib-zuul-web:/var/lib/zuul"
|
|
networks:
|
|
- zuul
|
|
executor:
|
|
privileged: true
|
|
environment:
|
|
- http_proxy
|
|
- https_proxy
|
|
- no_proxy=${no_proxy},gerrit,scheduler
|
|
- ZUUL_MYSQL_PASSWORD=secret
|
|
depends_on:
|
|
- scheduler
|
|
image: quay.io/zuul-ci/zuul-executor
|
|
volumes:
|
|
- "${ZUUL_TUTORIAL_CONFIG:-./etc_zuul/}:/etc/zuul/:z"
|
|
- "./playbooks/:/var/playbooks/:z"
|
|
- "sshkey:/var/ssh:z"
|
|
- "logs:/srv/static/logs:z"
|
|
- "certs:/var/certs:z"
|
|
- "lib-zuul-executor:/var/lib/zuul:z"
|
|
command: "sh -c '/var/playbooks/wait-to-start-certs.sh && exec zuul-executor -f'"
|
|
networks:
|
|
- zuul
|
|
node:
|
|
build:
|
|
dockerfile: node-Dockerfile
|
|
context: ./
|
|
args:
|
|
http_proxy: "${http_proxy}"
|
|
https_proxy: "${http_proxy}"
|
|
no_proxy: "${no_proxy},gerrit"
|
|
volumes:
|
|
- "nodessh:/root/.ssh:z"
|
|
networks:
|
|
- zuul
|
|
launcher:
|
|
depends_on:
|
|
- zk
|
|
image: quay.io/zuul-ci/nodepool-launcher
|
|
volumes:
|
|
- "./playbooks/:/var/playbooks/:z"
|
|
- "./etc_nodepool/:/etc/nodepool/:z"
|
|
- "certs:/var/certs:z"
|
|
ports:
|
|
- "8005:8005"
|
|
command: "sh -c '/var/playbooks/wait-to-start-certs.sh && exec nodepool-launcher -f'"
|
|
networks:
|
|
- zuul
|
|
logs:
|
|
build:
|
|
dockerfile: logs-Dockerfile
|
|
context: ./
|
|
args:
|
|
http_proxy: "${http_proxy}"
|
|
https_proxy: "${http_proxy}"
|
|
no_proxy: "${no_proxy}"
|
|
ports:
|
|
- "8000:80"
|
|
volumes:
|
|
- "logs:/usr/local/apache2/htdocs:z"
|
|
networks:
|
|
- zuul
|
|
|
|
volumes:
|
|
sshkey:
|
|
nodessh:
|
|
logs:
|
|
certs:
|
|
lib-zuul-scheduler:
|
|
lib-zuul-web:
|
|
lib-zuul-executor:
|
|
zk-data:
|
|
zk-datalog:
|
|
lib-mysql:
|
|
gerrit-etc:
|
|
gerrit-db:
|
|
gerrit-git:
|
|
gerrit-index:
|
|
gerrit-cache:
|
|
|
|
networks:
|
|
zuul:
|