install: Support Debian 13.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2025-08-12 15:54:21 -07:00
committed by Tim Abbott
parent 2ddafe728e
commit ff15d746c3
10 changed files with 25 additions and 7 deletions

View File

@@ -154,6 +154,11 @@ jobs:
os: bookworm
extra-args: --test-custom-db
- docker_image: zulip/ci:trixie
name: Debian 13 production install
os: trixie
extra-args: ""
name: ${{ matrix.name }}
container:
image: ${{ matrix.docker_image }}

View File

@@ -28,7 +28,7 @@ jobs:
fail-fast: false
matrix:
include:
# Base images are built using `tools/ci/Dockerfile.prod.template`.
# Base images are built using `tools/ci/Dockerfile`.
# The comments at the top explain how to build and upload these images.
# Ubuntu 22.04 ships with Python 3.10.12.
- docker_image: zulip/ci:jammy
@@ -48,6 +48,12 @@ jobs:
os: noble
include_documentation_tests: false
include_frontend_tests: false
# Debian 13 ships with Python 3.13.5.
- docker_image: zulip/ci:trixie
name: Debian 13 (Python 3.13, backend)
os: trixie
include_documentation_tests: false
include_frontend_tests: false
runs-on: ubuntu-latest
name: ${{ matrix.name }}

View File

@@ -20,7 +20,7 @@ host by following these instructions. Currently supported platforms
are:
- Ubuntu 22.04, 24.04
- Debian 12
- Debian 12, 13
- CentOS 7 (beta)
- Fedora 38 (beta)
- RHEL 7 (beta)

View File

@@ -60,8 +60,8 @@ the internet.)
:::{tab-item} Ubuntu/Debian
:sync: os-ubuntu
- Ubuntu 22.04, or 24.04
- Debian 12
- Ubuntu 22.04 or 24.04
- Debian 12 or 13
:::
:::{tab-item} Fedora

View File

@@ -7,6 +7,7 @@ To run a Zulip server, you will need:
- Ubuntu 22.04
- Ubuntu 24.04
- Debian 12
- Debian 13
- A supported CPU architecture:
- x86-64
- aarch64
@@ -37,7 +38,7 @@ on issues you'll encounter](install-existing-server.md).
#### Operating system
Ubuntu 22.04, Ubuntu 24.04, and Debian 12
Ubuntu 22.04, Ubuntu 24.04, Debian 12, and Debian 13
are supported for running Zulip in production. You can also
run Zulip on other platforms that support Docker using
[docker-zulip][docker-zulip-homepage].

View File

@@ -361,6 +361,7 @@ Unsupported OS release: $os_id $os_version_id
Zulip in production is supported only on:
- Debian 12
- Debian 13
- Ubuntu 22.04 LTS
- Ubuntu 24.04 LTS
EOF

View File

@@ -16,7 +16,7 @@ if [ -f /etc/os-release ]; then
fi
case "$os_id $os_version_id" in
'debian 12' | 'ubuntu 22.04' | 'ubuntu 24.04')
'debian 12' | 'debian 13' | 'ubuntu 22.04' | 'ubuntu 24.04')
exit 0
;;
*)

View File

@@ -0,0 +1,2 @@
deb [signed-by=/etc/apt/keyrings/pgdg.asc] http://apt.postgresql.org/pub/repos/apt/ trixie-pgdg main
deb-src [signed-by=/etc/apt/keyrings/pgdg.asc] http://apt.postgresql.org/pub/repos/apt/ trixie-pgdg main

View File

@@ -4,3 +4,4 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
docker build . --build-arg=BASE_IMAGE=ubuntu:22.04 --pull --tag=zulip/ci:jammy
docker build . --build-arg=BASE_IMAGE=ubuntu:24.04 --pull --tag=zulip/ci:noble
docker build . --build-arg=BASE_IMAGE=debian:12 --pull --tag=zulip/ci:bookworm
docker build . --build-arg=BASE_IMAGE=debian:13 --pull --tag=zulip/ci:trixie

View File

@@ -77,6 +77,8 @@ vendor = distro_info["ID"]
os_version = distro_info["VERSION_ID"]
if vendor == "debian" and os_version == "12": # bookworm
POSTGRESQL_VERSION = "15"
elif vendor == "debian" and os_version == "13": # trixie
POSTGRESQL_VERSION = "17"
elif vendor == "ubuntu" and os_version == "22.04": # jammy
POSTGRESQL_VERSION = "14"
elif vendor == "ubuntu" and os_version == "24.04": # noble
@@ -150,7 +152,7 @@ COMMON_YUM_DEPENDENCIES = [
BUILD_GROONGA_FROM_SOURCE = False
BUILD_PGROONGA_FROM_SOURCE = False
if (vendor == "debian" and os_version in []) or (vendor == "ubuntu" and os_version in []):
if (vendor == "debian" and os_version in ["13"]) or (vendor == "ubuntu" and os_version in []):
# For platforms without a PGroonga release, we need to build it
# from source.
BUILD_PGROONGA_FROM_SOURCE = True