Skip to content

Commit

Permalink
Fix mod-wsgi for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Mar 11, 2024
1 parent 72b62a0 commit 0eb0087
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 79 deletions.
1 change: 1 addition & 0 deletions .github/workflows/resultsdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
command: >-
sudo apt-get update
&& sudo apt-get install
apache2-dev
libkrb5-dev
libldap2-dev
libsasl2-dev
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN set -exo pipefail \
openldap-devel \
python3 \
python3-devel \
httpd-devel \
# install runtime dependencies
&& yum install -y \
--installroot=/mnt/rootfs \
Expand All @@ -26,7 +27,7 @@ RUN set -exo pipefail \
mod_ssl \
openldap \
python3 \
python3-mod_wsgi \
httpd-core \
&& yum --installroot=/mnt/rootfs clean all \
&& rm -rf /mnt/rootfs/var/cache/* /mnt/rootfs/var/log/dnf* /mnt/rootfs/var/log/yum.* \
# https://python-poetry.org/docs/master/#installing-with-the-official-installer
Expand Down Expand Up @@ -102,7 +103,7 @@ WORKDIR /app
USER 1001
EXPOSE 5001
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["mod_wsgi-express-3", "start-server", "/usr/share/resultsdb/resultsdb.wsgi", \
CMD ["mod_wsgi-express", "start-server", "/usr/share/resultsdb/resultsdb.wsgi", \
"--user", "apache", "--group", "apache", \
"--port", "5001", "--threads", "5", \
"--include-file", "/etc/httpd/conf.d/resultsdb.conf", \
Expand Down

0 comments on commit 0eb0087

Please sign in to comment.