Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- name: Build image
run: DOCKER_BUILDKIT=1 docker build --tag docs.ubuntu.com .
Expand All @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- name: Install dependencies
run: yarn install --immutable
Expand All @@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- name: Install node dependencies
run: yarn install --immutable
Expand All @@ -51,15 +51,16 @@ jobs:
run: yarn lint-python

test-python:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- name: Install requirements
run: |
sudo apt-get update && sudo apt-get install --yes python3-setuptools
sudo pip3 install -r requirements.txt
sudo apt-get update && sudo apt-get install --yes build-essential python3-dev python3-setuptools
sudo pip3 install --upgrade pip setuptools wheel "Cython<3"
sudo pip3 install --no-build-isolation -r requirements.txt

- name: Install node dependencies
run: yarn install
Expand All @@ -74,7 +75,7 @@ jobs:
run: coverage run --source=. -m unittest discover tests

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v6
with:
flags: python

Expand All @@ -83,7 +84,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v6

- name: woke
uses: canonical-web-and-design/inclusive-naming@main
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@

# Build stage: Install python dependencies
# ===
FROM ubuntu:focal AS python-dependencies
FROM ubuntu:noble AS python-dependencies
RUN apt update && apt install --no-install-recommends --yes build-essential python3 python3-dev python3-pip python3-setuptools
COPY requirements.txt /tmp/requirements.txt
RUN --mount=type=cache,target=/root/.cache/pip pip3 install --user Cython==0.29.37 && pip3 install --user --no-build-isolation --requirement /tmp/requirements.txt


# Build stage: Install yarn dependencies
# ===
FROM node:16 AS yarn-dependencies
FROM node:25 AS yarn-dependencies
WORKDIR /srv
COPY . .
RUN --mount=type=cache,target=/usr/local/share/.cache/yarn yarn install


# Build stage:
# ===
FROM ubuntu:focal AS build-documentation
FROM ubuntu:noble AS build-documentation
WORKDIR /srv
RUN apt-get update && apt-get install --no-install-recommends --yes git ca-certificates python3 python3-pip python3-setuptools
RUN pip3 install ubuntudesign.documentation-builder gitdb2==3.0.1 MarkupSafe==2.0.1
RUN pip3 install --break-system-packages ubuntudesign.documentation-builder gitdb2==4.0.2 MarkupSafe==2.1.5
ADD build-docs.sh build-docs.sh
ADD .git/index /dev/null
RUN mkdir -p /srv/static/media && ./build-docs.sh
Expand All @@ -39,7 +39,7 @@ RUN yarn run build-js

# Build the production image
# ===
FROM ubuntu:focal
FROM ubuntu:noble

# Set up environment
ENV LANG C.UTF-8
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"postcss-cli": "8.3.1",
"sass": "1.99.0",
"webpack": "5.106.1",
"webpack-cli": "4.10.0"
"webpack-cli": "4.9.1"
},
"devDependencies": {
"@babel/core": "7.29.0",
"@babel/preset-env": "7.29.2",
"babel-loader": "8.4.1"
"babel-loader": "8.2.3"
}
}
7 changes: 4 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ Django==3.2.14
canonicalwebteam.custom_response_headers==0.2.0
canonicalwebteam.versioned-static==1.0.2
canonicalwebteam.yaml-responses==1.2.0
PyYAML==6.0
django-static-root-finder==0.3.1
django-asset-server-url==0.1
django-template-finder-view==0.3
django-yaml-redirects==0.5.4
talisker[gunicorn,gevent]==0.23.0
gevent==23.9.1
whitenoise==5.3.0
gevent==24.2.1
whitenoise==6.7.0
ubuntudesign.documentation-builder==1.7.0
gitdb2==3.0.3.post1
gitdb2==4.0.2
MarkupSafe==2.1.5
Loading
Loading