bodhi: try running gunicorn in prod
Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
parent
da405d3326
commit
9fafa15626
2 changed files with 5 additions and 3 deletions
|
@ -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
|
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...
|
# While dnf has a --nodocs, it doesen't have a --docs...
|
||||||
RUN sed -i '/nodocs/d' /etc/dnf/dnf.conf
|
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 &&\
|
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/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 &&\
|
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 &&\
|
||||||
|
|
|
@ -62,8 +62,10 @@ items:
|
||||||
command: ["gunicorn"]
|
command: ["gunicorn"]
|
||||||
args: ["--paste", "/etc/bodhi/production.ini", "-b", "0.0.0.0:8080", "-w", "4"]
|
args: ["--paste", "/etc/bodhi/production.ini", "-b", "0.0.0.0:8080", "-w", "4"]
|
||||||
{% else %}
|
{% else %}
|
||||||
command: ["bash"]
|
command: ["gunicorn"]
|
||||||
args: ["/etc/bodhi/start.sh"]
|
args: ["--paste", "/etc/bodhi/production.ini", "-b", "0.0.0.0:8080", "-w", "4"]
|
||||||
|
# command: ["bash"]
|
||||||
|
# args: ["/etc/bodhi/start.sh"]
|
||||||
{% endif %}
|
{% endif %}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue