mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-09 16:14:59 +08:00
Our code in `module_build_service/builder.py` can already do kerberos authentication with koji. This commit changes our docker development tools to use that instead of ssl authentication. Relates to #111.
56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
version: "2"
|
|
services:
|
|
|
|
fedmsg-relay:
|
|
build: .
|
|
command: fedmsg-relay
|
|
expose:
|
|
- 2001
|
|
- 2003
|
|
volumes:
|
|
# module_build_service sources are bind-mounted, so you don't have to rebuild
|
|
- ./:/opt/module_build_service/:z
|
|
|
|
scheduler:
|
|
build: .
|
|
command: python2 /opt/module_build_service/module_build_service_daemon.py
|
|
links:
|
|
- fedmsg-relay
|
|
environment:
|
|
# Check /var/tmp/krbcc and make sure that it is not a directory. If it
|
|
# is, then delete it with 'sudo rm -rf /var/tmp/krbcc'.
|
|
# Initialize the file before running 'docker-compose up' with:
|
|
# $ KRB5CCNAME=FILE:/var/tmp/krbcc kinit YOUR_USERNAME@FEDORAPROJECT.ORG
|
|
- KRB5CCNAME=FILE:/var/tmp/krbcc
|
|
volumes:
|
|
# module_build_service sources are bind-mounted, so you don't have to rebuild
|
|
- ./:/opt/module_build_service/:z
|
|
- /var/tmp/krbcc:/var/tmp/krbcc:Z
|
|
|
|
frontend:
|
|
build: .
|
|
ports:
|
|
- "5000:5000"
|
|
links:
|
|
- scheduler
|
|
- fedmsg-relay
|
|
depends_on:
|
|
- upgradedb
|
|
- generatelocalhostcert
|
|
volumes:
|
|
# module_build_service sources are bind-mounted, so you don't have to rebuild
|
|
- ./:/opt/module_build_service/:z
|
|
command: python2 manage.py runssl
|
|
|
|
upgradedb:
|
|
build: .
|
|
volumes:
|
|
- ./:/opt/module_build_service/:z
|
|
command: python2 manage.py upgradedb
|
|
|
|
generatelocalhostcert:
|
|
build: .
|
|
volumes:
|
|
- ./:/opt/module_build_service/:z
|
|
command: python2 manage.py generatelocalhostcert
|