bodhi: try running gunicorn in prod

Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
Clement Verna 2020-05-28 13:02:27 +02:00
parent da405d3326
commit 9fafa15626
2 changed files with 5 additions and 3 deletions

View file

@ -18,7 +18,7 @@ items:
RUN curl -o /etc/yum.repos.d/infra-tags.repo https://infrastructure.fedoraproject.org/cgit/ansible.git/plain/files/common/fedora-infra-tags.repo
# While dnf has a --nodocs, it doesen't have a --docs...
RUN sed -i '/nodocs/d' /etc/dnf/dnf.conf
RUN dnf install -y bodhi-server-{{bodhi_version}} bodhi-docs-{{bodhi_version}} python3-pyramid_sawing
RUN dnf install -y bodhi-server-{{bodhi_version}} bodhi-docs-{{bodhi_version}} python3-pyramid_sawing python3-gunicorn
RUN curl -o /usr/lib/python3.8/site-packages/bodhi/server/models.py https://raw.githubusercontent.com/cverna/bodhi/fix_editing_updates/bodhi/server/models.py &&\
curl -o /usr/lib/python3.8/site-packages/bodhi/server/tasks/__init__.py https://raw.githubusercontent.com/cverna/bodhi/fix_editing_updates/bodhi/server/tasks/__init__.py &&\
curl -o /usr/lib/python3.8/site-packages/bodhi/server/util.py https://raw.githubusercontent.com/cverna/bodhi/fix_editing_updates/bodhi/server/util.py &&\

View file

@ -62,8 +62,10 @@ items:
command: ["gunicorn"]
args: ["--paste", "/etc/bodhi/production.ini", "-b", "0.0.0.0:8080", "-w", "4"]
{% else %}
command: ["bash"]
args: ["/etc/bodhi/start.sh"]
command: ["gunicorn"]
args: ["--paste", "/etc/bodhi/production.ini", "-b", "0.0.0.0:8080", "-w", "4"]
# command: ["bash"]
# args: ["/etc/bodhi/start.sh"]
{% endif %}
ports:
- containerPort: 8080