mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-11 09:05:00 +08:00
Add Dockerfiles to build images for the backend and frontend. Add an OpenShift template to deploy an MBS test instance, and connect it to a message bus and Koji instance. Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
28 lines
899 B
Docker
28 lines
899 B
Docker
# See `../backend/` for building `mbs-backend:latest`
|
|
FROM mbs-backend:latest
|
|
LABEL \
|
|
name="Frontend for the Module Build Service (MBS)" \
|
|
vendor="The Factory 2.0 Team" \
|
|
license="MIT" \
|
|
description="The MBS coordinates module builds. This image is to serve as the MBS frontend." \
|
|
usage="https://pagure.io/fm-orchestrator" \
|
|
build-date=""
|
|
|
|
RUN dnf -y install \
|
|
httpd \
|
|
mod_wsgi \
|
|
&& dnf -y clean all
|
|
|
|
EXPOSE 8080/tcp 8443/tcp
|
|
VOLUME ["/etc/module-build-service", "/etc/fedmsg.d", "/etc/mbs-certs", "/etc/httpd/conf.d"]
|
|
ENTRYPOINT ["mod_wsgi-express", "start-server", "/usr/share/mbs/mbs.wsgi"]
|
|
CMD [\
|
|
"--user", "fedmsg", "--group", "fedmsg", \
|
|
"--port", "8080", "--threads", "1", \
|
|
"--include-file", "/etc/httpd/conf.d/mbs.conf", \
|
|
"--log-level", "info", \
|
|
"--log-to-terminal", \
|
|
"--access-log", \
|
|
"--startup-log" \
|
|
]
|