Skip to content

Commit e70f579

Browse files
authored
Move to Ubuntu 24.04 and Python 3.12 (#418)
1 parent 9c2a80d commit e70f579

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

.github/workflows/tox.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: ['3.10','3.12']
17+
python-version: ['3.12']
1818

1919
steps:
2020
- name: Check out the repository

api/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:jammy AS python-builder
1+
FROM ubuntu:24.04 AS python-builder
22

33
RUN apt-get update && \
44
apt-get install -y git python3 python3-venv && \
@@ -16,7 +16,7 @@ COPY . /app
1616
RUN /venv/bin/pip install -e /app
1717

1818

19-
FROM ubuntu:jammy
19+
FROM ubuntu:24.04
2020

2121
# Don't buffer stdout and stderr as it breaks realtime logging
2222
ENV PYTHONUNBUFFERED 1

api/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version = 0.1.0
66
description = API for managing projects in an OpenStack cloud.
77
long_description = file: README.md
88
url = https://github.com/azimuth-cloud/azimuth
9-
9+
python-requires= >=3.10
1010

1111
[options]
1212
zip_safe = False

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.ruff]
22
line-length = 88
3-
target-version = "py310"
3+
target-version = "py312"
44

55
[tool.ruff.format]
66
line-ending = "lf"
@@ -30,6 +30,7 @@ select = [
3030
]
3131
ignore = [
3232
"UP038", # deprecated
33+
"UP017", # remove and fix once 3.10 no longer tested in CI
3334
]
3435

3536
[tool.mypy]

ui/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ RUN cd /application && \
1515

1616
# This intermediate image is used to fetch the GPG key for the NGINX repo
1717
# without polluting the runtime image with GPG packages
18-
FROM ubuntu:jammy AS nginx-gpg-key
18+
FROM ubuntu:24.04 AS nginx-gpg-key
1919

20-
ENV NGINX_GPG_KEY="573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62"
20+
ENV NGINX_GPG_KEY="2FD21310B49F6B46"
2121

2222
RUN apt-get update && \
2323
apt-get install -y gnupg2 && \
@@ -27,7 +27,7 @@ RUN gpg2 --keyserver hkp://keyserver.ubuntu.com:80 --keyserver-options timeout=1
2727
gpg2 --export "$NGINX_GPG_KEY" > /usr/share/keyrings/nginx-archive-keyring.gpg
2828

2929

30-
FROM ubuntu:jammy
30+
FROM ubuntu:24.04
3131

3232
# Copy the GPG key from the intermediate container
3333
COPY --from=nginx-gpg-key /usr/share/keyrings/nginx-archive-keyring.gpg /usr/share/keyrings/
@@ -45,11 +45,11 @@ COPY --from=nginx-gpg-key /usr/share/keyrings/nginx-archive-keyring.gpg /usr/sha
4545
# but we don't want to make all of /var/run writable
4646
RUN echo "Target NGINX version: ${NGINX_VERSION}"
4747
RUN apt-get update && \
48-
apt-get install --no-install-recommends --no-install-suggests -y ca-certificates && \
49-
echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/mainline/ubuntu/ jammy nginx" \
48+
apt-get install --no-install-recommends --no-install-suggests -y ca-certificates tini && \
49+
echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/mainline/ubuntu/ noble nginx" \
5050
> /etc/apt/sources.list.d/nginx.list && \
5151
apt-get update && \
52-
apt-get install --no-install-recommends --no-install-suggests -y "nginx=${NGINX_VERSION}*" tini && \
52+
apt-get install --no-install-recommends --no-install-suggests -y "nginx=${NGINX_VERSION}*" && \
5353
rm -rf /var/lib/apt/lists/* && \
5454
ln -sf /dev/stdout /var/log/nginx/access.log && \
5555
ln -sf /dev/stderr /var/log/nginx/error.log && \

0 commit comments

Comments
 (0)