greenwave role: mount to /etc/fedmsg-greenwave.d for the fedmsg consumers container

This will allow us to extend the default configuration provided with the rpm instead of
overriding it.
This commit is contained in:
Matt Jia 2017-10-11 09:19:41 +10:00
parent 4a8eec62f2
commit 6b367d3a10
No known key found for this signature in database
GPG key ID: 496C2CDC1EF01F5D
2 changed files with 3 additions and 2 deletions

View file

@ -83,7 +83,7 @@ spec:
- '/usr/bin/fedmsg-hub'
volumeMounts:
- name: fedmsg-config-volume
mountPath: /etc/fedmsg.d
mountPath: /etc/fedmsg-greenwave.d
readOnly: true
resources:
limits:

View file

@ -13,7 +13,6 @@ spec:
name="Greenwave" \
vendor="Fedora Infrastructure" \
license="MIT"
RUN dnf -y clean all
RUN dnf -v -y install --setopt=tsflags=nodocs \
python-gunicorn \
python-requests \
@ -22,6 +21,8 @@ spec:
python2-flask
RUN dnf -v -y install --setopt=tsflags=nodocs \
https://kojipkgs.fedoraproject.org//packages/greenwave/0.3/1.fc26/noarch/greenwave-0.3-1.fc26.noarch.rpm
# create a symlink for configuring the fedmsg consumers.
RUN ln -sfn /etc/fedmsg-greenwave.d/greenwave.py /etc/fedmsg.d/greenwave.py
EXPOSE 8080
ENTRYPOINT gunicorn --bind 0.0.0.0:8080 --access-logfile=- greenwave.wsgi:app
strategy: