Skip to content

Commit

Permalink
Update to Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Jan 3, 2025
1 parent 90dc8cc commit 0d1e4fd
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 253 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gating.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
with:
python-version: "3.12"
python-version: "3.13"

- name: Install system dependencies
uses: nick-invision/retry@7152eba30c6575329ac0576536151aca5a72780e # v3
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
with:
python-version: "3.12"
python-version: "3.13"

- name: Install dependencies
run: |
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
with:
python-version: "3.12"
python-version: "3.13"

- name: Install system dependencies
uses: nick-invision/retry@7152eba30c6575329ac0576536151aca5a72780e # v3
Expand Down
18 changes: 8 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
FROM quay.io/fedora/python-312:20250101@sha256:30e9dd44032e041c4967ec7d20f35929e6c5de30cd6afe0f575f9786e9c90723 AS builder
FROM quay.io/fedora/python-313:20250101@sha256:dc3b9cf6de0ce9dca8b7eda0b353f7cfa15887e0bfe2015b2100f7d1aa368293 AS builder

# builder should use root to install/create all files
USER root

# hadolint ignore=DL3033,DL3041,DL4006,SC2039,SC3040
RUN set -exo pipefail \
&& mkdir -p /mnt/rootfs \
# install builder dependencies
&& dnf install -y \
--setopt install_weak_deps=false \
--nodocs \
--disablerepo=* \
--enablerepo=fedora,updates \
krb5-devel \
openldap-devel \
# install runtime dependencies
&& dnf install -y \
--installroot=/mnt/rootfs \
--releasever=/ \
--use-host-config \
--setopt install_weak_deps=false \
--nodocs \
--disablerepo=* \
Expand Down Expand Up @@ -98,5 +90,11 @@ WORKDIR /app

USER 1001
EXPOSE 8080

# Validate virtual environment
RUN /app/entrypoint.sh python -c 'import waiverdb' \
&& gunicorn --version \
&& /app/entrypoint.sh waiverdb --help

ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "--access-logfile", "-", "--enable-stdio-inheritance", "waiverdb.wsgi:app"]
Loading

0 comments on commit 0d1e4fd

Please sign in to comment.