Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

install: Support Ubuntu 24.04.

Anders Kaseorg066ea3ebf9d6
diff --git a/.github/workflows/production-suite.yml b/.github/workflows/production-suite.yml
index eb7e637ed72..9f6b105f680 100644
--- a/.github/workflows/production-suite.yml
+++ b/.github/workflows/production-suite.yml
@@ -145,6 +145,11 @@ jobs:
os: jammy
extra-args: ""
+ - docker_image: zulip/ci:noble
+ name: Ubuntu 24.04 production install
+ os: noble
+ extra-args: ""
+
- docker_image: zulip/ci:bullseye
name: Debian 11 production install with custom db name and user
os: bullseye
diff --git a/.github/workflows/zulip-ci.yml b/.github/workflows/zulip-ci.yml
index 9c2e9bf2f83..7aff61555cd 100644
--- a/.github/workflows/zulip-ci.yml
+++ b/.github/workflows/zulip-ci.yml
@@ -54,6 +54,12 @@ jobs:
os: bookworm
include_documentation_tests: false
include_frontend_tests: false
+ # Ubuntu 24.04 ships with Python 3.12.2.
+ - docker_image: zulip/ci:noble
+ name: Ubuntu 24.04 (Python 3.12, backend)
+ os: noble
+ include_documentation_tests: false
+ include_frontend_tests: false
runs-on: ubuntu-latest
name: ${{ matrix.name }}
diff --git a/docs/development/setup-advanced.md b/docs/development/setup-advanced.md
index f8ada7106a7..a531d386ebc 100644
--- a/docs/development/setup-advanced.md
+++ b/docs/development/setup-advanced.md
@@ -19,7 +19,7 @@ One can install the Zulip development environment directly on a Linux
host by following these instructions. Currently supported platforms
are:
-- Ubuntu 20.04, 22.04
+- Ubuntu 20.04, 22.04, 24.04
- Debian 11, 12
- CentOS 7 (beta)
- Fedora 38 (beta)
diff --git a/docs/development/setup-recommended.md b/docs/development/setup-recommended.md
index 4cee0d65e27..ee0f5717bac 100644
--- a/docs/development/setup-recommended.md
+++ b/docs/development/setup-recommended.md
@@ -50,7 +50,7 @@ a proxy to access the internet.)
- **All**: 2GB available RAM, Active broadband internet connection,
[GitHub account](#step-0-set-up-git--github).
- **macOS**: macOS (10.11 El Capitan or newer recommended)
-- **Ubuntu LTS**: 20.04 or 22.04
+- **Ubuntu LTS**: 20.04, 22.04, or 24.04
- **Debian**: 11 or 12
- **Fedora**: tested for 36
- **Windows**: Windows 64-bit (Windows 10 recommended), hardware
diff --git a/docs/production/requirements.md b/docs/production/requirements.md
index ff8ca5b7f18..0de085b7f23 100644
--- a/docs/production/requirements.md
+++ b/docs/production/requirements.md
@@ -6,6 +6,7 @@ To run a Zulip server, you will need:
- A supported OS:
- Ubuntu 20.04
- Ubuntu 22.04
+ - Ubuntu 24.04
- Debian 11
- Debian 12
- A supported CPU architecture:
@@ -37,7 +38,7 @@ on issues you'll encounter](install-existing-server.md).
#### Operating system
-Ubuntu 20.04, Ubuntu 22.04, Debian 11, and Debian 12
+Ubuntu 20.04, Ubuntu 22.04, Ubuntu 24.04, Debian 11, and Debian 12
are supported for running Zulip in production. You can also
run Zulip on other platforms that support Docker using
[docker-zulip][docker-zulip-homepage].
diff --git a/scripts/lib/install b/scripts/lib/install
index 71cb215386f..3cb4299564b 100755
--- a/scripts/lib/install
+++ b/scripts/lib/install
@@ -231,7 +231,7 @@ if [ -f /etc/os-release ]; then
fi
case "$os_id $os_version_id" in
- 'debian 11' | 'debian 12' | 'ubuntu 20.04' | 'ubuntu 22.04') ;;
+ 'debian 11' | 'debian 12' | 'ubuntu 20.04' | 'ubuntu 22.04' | 'ubuntu 24.04') ;;
*)
system_requirements_failure <<EOF
Unsupported OS release: $os_id $os_version_id
@@ -241,6 +241,7 @@ Zulip in production is supported only on:
- Debian 12
- Ubuntu 20.04 LTS
- Ubuntu 22.04 LTS
+ - Ubuntu 24.04 LTS
EOF
;;
esac
diff --git a/scripts/setup/apt-repos/zulip/custom.sh b/scripts/setup/apt-repos/zulip/custom.sh
index be7c780b7ee..a6b45ad7702 100755
--- a/scripts/setup/apt-repos/zulip/custom.sh
+++ b/scripts/setup/apt-repos/zulip/custom.sh
@@ -28,6 +28,11 @@ if [[ ! -e /usr/share/doc/groonga-apt-source/copyright ]]; then
read -r release
} <<<"$os_info"
+ if [ "$distribution" = ubuntu ] && [ "$release" = noble ]; then
+ # PGroonga binaries are not yet provided for Ubuntu 24.04.
+ exit
+ fi
+
if [ "$distribution" = debian ] && [ "$release" = bookworm ]; then
# As of Debian 12, the Groonga repository depends on the
# Apache Arrow repository.
diff --git a/scripts/setup/apt-repos/zulip/noble.list b/scripts/setup/apt-repos/zulip/noble.list
new file mode 100644
index 00000000000..9fdcfb3a7c7
--- /dev/null
+++ b/scripts/setup/apt-repos/zulip/noble.list
@@ -0,0 +1,2 @@
+deb http://apt.postgresql.org/pub/repos/apt/ noble-pgdg main
+deb-src http://apt.postgresql.org/pub/repos/apt/ noble-pgdg main
diff --git a/tools/ci/build-docker-images b/tools/ci/build-docker-images
index ca91df85921..f20e7b6b62c 100755
--- a/tools/ci/build-docker-images
+++ b/tools/ci/build-docker-images
@@ -3,5 +3,6 @@ set -eux
cd "$(dirname "${BASH_SOURCE[0]}")"
docker build . --build-arg=BASE_IMAGE=ubuntu:20.04 --pull --tag=zulip/ci:focal
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:11 --pull --tag=zulip/ci:bullseye
docker build . --build-arg=BASE_IMAGE=debian:12 --pull --tag=zulip/ci:bookworm
diff --git a/tools/lib/provision.py b/tools/lib/provision.py
index 4107d78cb0d..82d898164d6 100755
--- a/tools/lib/provision.py
+++ b/tools/lib/provision.py
@@ -86,6 +86,8 @@ elif vendor == "ubuntu" and os_version == "21.10": # impish
POSTGRESQL_VERSION = "13"
elif vendor == "ubuntu" and os_version == "22.04": # jammy
POSTGRESQL_VERSION = "14"
+elif vendor == "ubuntu" and os_version == "24.04": # noble
+ POSTGRESQL_VERSION = "16"
elif vendor == "neon" and os_version == "20.04": # KDE Neon
POSTGRESQL_VERSION = "12"
elif vendor == "fedora" and os_version == "38":
@@ -126,11 +128,8 @@ UBUNTU_COMMON_APT_DEPENDENCIES = [
"default-jre-headless", # Required by vnu-jar
# Puppeteer dependencies from here
"fonts-freefont-ttf",
- "gconf-service",
- "libappindicator1",
"libatk-bridge2.0-0",
"libgbm1",
- "libgconf-2-4",
"libgtk-3-0",
"libx11-xcb1",
"libxcb-dri3-0",
@@ -160,7 +159,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 []) or (vendor == "ubuntu" and os_version in ["24.04"]):
# For platforms without a PGroonga release, we need to build it
# from source.
BUILD_PGROONGA_FROM_SOURCE = True
@@ -176,14 +175,6 @@ if (vendor == "debian" and os_version in []) or (vendor == "ubuntu" and os_versi
]
elif "debian" in os_families():
DEBIAN_DEPENDENCIES = UBUNTU_COMMON_APT_DEPENDENCIES
- # The below condition is required since libappindicator is
- # not available for Debian 11. "libgroonga1" is an
- # additional dependency for postgresql-13-pgdg-pgroonga.
- #
- # See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895037
- if vendor == "debian":
- DEBIAN_DEPENDENCIES.remove("libappindicator1")
- DEBIAN_DEPENDENCIES.append("libgroonga0")
# If we are on an aarch64 processor, ninja will be built from source,
# so cmake is required