Skip to content

Commit 875f64b

Browse files
authored
Merge pull request PowerDNS#21 from romeroalx/image-debian-trixie
Generate image for debian trixie
2 parents db0624b + eaae507 commit 875f64b

2 files changed

Lines changed: 23 additions & 5 deletions

File tree

.github/workflows/build-debian-images.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,20 @@ jobs:
2121
- id: debian-11-pdns-base
2222
debian-image-name: python
2323
debian-image-tag: 3.11-slim-bullseye
24+
clang-version: '13'
2425
- id: debian-12-pdns-base
2526
debian-image-name: debian
2627
debian-image-tag: bookworm-slim
28+
clang-version: '13'
29+
- id: debian-13-pdns-base
30+
debian-image-name: python
31+
debian-image-tag: 3.11-slim-trixie
32+
clang-version: '19'
2733
exclude:
2834
- branch-name: rel/auth-4.9.x
2935
image: {id: debian-11-pdns-base, debian-image-name: python, debian-image-tag: 3.11-slim-bullseye}
36+
- branch-name: rel/auth-4.9.x
37+
image: {id: debian-13-pdns-base, debian-image-name: python, debian-image-tag: 3.11-slim-trixie}
3038
- branch-name: rel/auth-4.9.x
3139
runner: ubuntu-24.04-arm
3240
fail-fast: false
@@ -65,6 +73,7 @@ jobs:
6573
DEBIAN_IMAGE_NAME=${{ matrix.image.debian-image-name }}
6674
DEBIAN_IMAGE_TAG=${{ matrix.image.debian-image-tag }}
6775
REPO_BRANCH=${{ matrix.branch-name }}
76+
CLANG_VERSION=${{ matrix.image.clang-version }}
6877
outputs: type=image,push-by-digest=true,name-canonical=true
6978
- name: Export output digest
7079
env:
@@ -92,9 +101,12 @@ jobs:
92101
image-id:
93102
- debian-11-pdns-base
94103
- debian-12-pdns-base
104+
- debian-13-pdns-base
95105
exclude:
96106
- branch-name: rel/auth-4.9.x
97107
image-id: debian-11-pdns-base
108+
- branch-name: rel/auth-4.9.x
109+
image-id: debian-13-pdns-base
98110
fail-fast: false
99111
runs-on: ubuntu-24.04
100112
if: ${{ github.event_name != 'pull_request' }}
@@ -145,6 +157,7 @@ jobs:
145157
image-id:
146158
- debian-11-pdns-base
147159
- debian-12-pdns-base
160+
- debian-13-pdns-base
148161
fail-fast: false
149162
steps:
150163
- name: Get repository name

Dockerfile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG DEBIAN_IMAGE_NAME=debian
2-
ARG DEBIAN_IMAGE_TAG=bookworm-slim
2+
ARG DEBIAN_IMAGE_TAG=trixie-slim
33
FROM ${DEBIAN_IMAGE_NAME}:${DEBIAN_IMAGE_TAG}
44

55
ARG USER_HOME=/home/runner
@@ -8,7 +8,8 @@ ARG REPO_BRANCH=master
88
ARG REPO_URL=https://github.com/PowerDNS/pdns.git
99
ARG DOCKER_GID=1000
1010

11-
ENV CLANG_VERSION='13'
11+
ARG CLANG_VERSION='19'
12+
ENV CLANG_VERSION=${CLANG_VERSION}
1213
ENV DECAF_SUPPORT=yes
1314

1415
# Reusable layer for base update
@@ -19,10 +20,14 @@ RUN groupadd -g ${DOCKER_GID} docker
1920

2021
# Install basic SW and debugging tools
2122
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install \
22-
sudo git curl gnupg software-properties-common wget \
23+
sudo git curl gnupg wget \
2324
ca-certificates apt-utils build-essential vim \
2425
iproute2 net-tools iputils-* ifupdown cmake acl \
25-
time mariadb-client postgresql-client jq python3 python3-requests python3-venv
26+
time mariadb-client postgresql-client jq python3 python3-requests \
27+
python3-venv $([ "$(. /etc/os-release && echo $VERSION_CODENAME)" = "trixie" ] && echo "systemd-dev")
28+
29+
# Disable ssl verification for for mariadb-client >= 11
30+
RUN bash -c "echo -e '[client]\ndisable-ssl-verify-server-cert' >> /etc/mysql/my.cnf"
2631

2732
# Required for auth-backend gsqlite3 tests
2833
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1
@@ -65,5 +70,5 @@ RUN sudo chmod 777 -R /opt/pdns-auth || true
6570

6671
WORKDIR ${USER_HOME}
6772

68-
# Clean-up folder
73+
# Clean-up folders
6974
RUN rm -rf pdns

0 commit comments

Comments
 (0)