Skip to content

Commit 40f350d

Browse files
committed
Modernize Test workflow and Dockerfile images
This commit updates the CI configuration to resolve build failures and align the test environments with modern, supported versions. - Replaces deprecated `ubuntu-20.04` runners with `ubuntu-22.04` in the GitHub Actions workflow, fixing the hanging jobs. - Adds QEMU and Docker Buildx to `arm64` jobs to enable cross-platform image builds. - Upgrades the Debian test environment from a Bullseye-based image to a Bookworm-based one, and updates Node.js from v18 to v22 (LTS). - Updates the Python 2.7 test environment to use an `ubuntu:22.04` base image and installs Python 2.7 via the `deadsnakes` PPA.
1 parent 2189b08 commit 40f350d

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ jobs:
3939
steps:
4040
- name: Checkout
4141
uses: actions/checkout@v4
42+
- name: Set up QEMU
43+
uses: docker/setup-qemu-action@v3
44+
- name: Set up Docker Buildx
45+
uses: docker/setup-buildx-action@v3
4246
- name: Test
4347
uses: devcontainers/ci@v0.2
4448
with:
@@ -69,6 +73,10 @@ jobs:
6973
steps:
7074
- name: Checkout
7175
uses: actions/checkout@v4
76+
- name: Set up QEMU
77+
uses: docker/setup-qemu-action@v3
78+
- name: Set up Docker Buildx
79+
uses: docker/setup-buildx-action@v3
7280
- name: Test
7381
uses: devcontainers/ci@v0.2
7482
with:

debian/Dockerfile-arm64

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM mcr.microsoft.com/devcontainers/typescript-node:18
1+
FROM mcr.microsoft.com/devcontainers/typescript-node:22-bookworm
22

3-
RUN apt update && apt-get install -y python3-pip
3+
RUN apt update && apt-get install -y python3-pip && rm -rf /var/lib/apt/lists/*
44
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1
55
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
66

py27/Dockerfile-test

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22

33
ENV SHELL=/bin/sh
44

5-
RUN apt update \
6-
&& apt-get install -y curl \
7-
&& apt-get install -y python2.7 python2.7-dev \
5+
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:deadsnakes/ppa && apt-get update
6+
RUN apt-get install -y --no-install-recommends \
7+
ca-certificates \
8+
curl \
9+
python2.7 \
10+
python2.7-dev \
811
&& update-alternatives --install /usr/bin/python python /usr/bin/python2.7 2
912

1013
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py \

0 commit comments

Comments
 (0)