bodhi: revert nullPool patch and apply timeout to queries

Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
This commit is contained in:
Mattia Verga 2024-01-28 15:25:14 +01:00
parent 4b27b2774f
commit c2025d4833

View file

@ -20,8 +20,8 @@ RUN dnf install -y bodhi-server-{{bodhi_version}} python3-pyramid_sawing python3
{% endif %}
# Temporary patch for testing fix for pod crashes
RUN curl https://github.com/fedora-infra/bodhi/commit/7a9d7fc09d4b2eb7653e29b6feeb148abd064054.patch -o /tmp/nullPool.patch
RUN patch -p3 -ruN -d /usr/lib/python3.11/site-packages/bodhi < /tmp/nullPool.patch
RUN curl https://github.com/fedora-infra/bodhi/commit/0c302e26003756544f63bbeba016f75f3f037a03.patch -o /tmp/dbTimeout.patch
RUN patch -p3 -ruN -d /usr/lib/python3.11/site-packages/bodhi < /tmp/dbTimeout.patch
# link the static files for a simpler httpd.conf
RUN ln -s $(python3 -Ic "import sysconfig; print(sysconfig.get_path('purelib', 'rpm_prefix'))")/bodhi/server/static/ /srv/bodhi-static