mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-05 11:48:33 +08:00
Add fedmsg-relay to docker-compose.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
FROM fedora:24
|
||||
|
||||
# so we don't have to compile those when fetched from PyPI
|
||||
RUN dnf install -y python-pip python2-setuptools python2-cffi python2-zmq python2-cryptography koji python2-pdc-client python-m2ext && \
|
||||
RUN dnf install -y python-pip python2-setuptools python2-cffi python2-zmq python2-cryptography koji python2-pdc-client python-m2ext fedmsg-relay && \
|
||||
dnf autoremove -y && dnf clean all && \
|
||||
mkdir /opt/module_build_service/
|
||||
WORKDIR /opt/module_build_service/
|
||||
|
||||
@@ -1,9 +1,19 @@
|
||||
version: "2"
|
||||
services:
|
||||
fedmsg-relay:
|
||||
build:
|
||||
context: .
|
||||
command: fedmsg-relay
|
||||
ports:
|
||||
- "2003:2003"
|
||||
- "4001:4001"
|
||||
module_build_service_daemon:
|
||||
build:
|
||||
context: .
|
||||
command: python2 /opt/module_build_service/module_build_service_daemon.py
|
||||
links:
|
||||
- module_build_service_daemon
|
||||
- fedmsg-relay
|
||||
volumes:
|
||||
- ./module_build_service/:/opt/module_build_service/module_build_service/:Z # module_build_service sources are bind-mounted, so you don't have to rebuild
|
||||
- ~/.fedora.cert:/root/.fedora.cert:Z # koji credentials are mounted inside
|
||||
@@ -16,5 +26,6 @@ services:
|
||||
- "5000:5000"
|
||||
links:
|
||||
- module_build_service_daemon
|
||||
- fedmsg-relay
|
||||
volumes:
|
||||
- ./module_build_service/:/opt/module_build_service/module_build_service/:Z
|
||||
|
||||
Reference in New Issue
Block a user