Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
install: Support Ubuntu 22.04.
Anders Kaseorg894a50b5c98b
diff --git a/.github/workflows/production-suite.yml b/.github/workflows/production-suite.ymlindex 68d3ccd4695..106a3180298 100644--- a/.github/workflows/production-suite.yml+++ b/.github/workflows/production-suite.yml@@ -114,6 +114,11 @@ jobs:os: focalextra_args: ""+ - docker_image: zulip/ci:jammy+ name: Ubuntu 22.04 production install+ os: jammy+ extra_args: ""+- docker_image: zulip/ci:bustername: Debian 10 production install with custom db name and useros: busterdiff --git a/.github/workflows/zulip-ci.yml b/.github/workflows/zulip-ci.ymlindex fd71a4e860a..c4543171cd9 100644--- a/.github/workflows/zulip-ci.yml+++ b/.github/workflows/zulip-ci.yml@@ -27,13 +27,16 @@ jobs:- docker_image: zulip/ci:focalname: Ubuntu 20.04 Focal (Python 3.8, backend)os: focal- is_focal: trueinclude_frontend_tests: false# Debian 11 ships with Python 3.9.2.- docker_image: zulip/ci:bullseyename: Debian 11 Bullseye (Python 3.9, backend)os: bullseye- is_bullseye: true+ include_frontend_tests: false+ # Ubuntu 22.04 ships with Python 3.9.10.+ - docker_image: zulip/ci:jammy+ name: Ubuntu 22.04 Jammy (Python 3.9, backend)+ os: jammyinclude_frontend_tests: falseruns-on: ubuntu-latest@@ -218,7 +221,7 @@ jobs:retention-days: 60- name: Check development database build- if: ${{ matrix.is_focal || matrix.is_bullseye }}+ if: ${{ matrix.os == 'focal' || matrix.os == 'bullseye' || matrix.os == 'jammy' }}run: ./tools/ci/setup-backend- name: Report statusdiff --git a/docs/development/setup-advanced.md b/docs/development/setup-advanced.mdindex 4dcd199e25a..5eddc9435e2 100644--- a/docs/development/setup-advanced.md+++ b/docs/development/setup-advanced.md@@ -12,7 +12,7 @@ Contents:If you'd like to install a Zulip development environment on a computerthat's running one of:-- Ubuntu 20.04 Focal+- Ubuntu 20.04 Focal, 22.04 Jammy (beta)- Debian 10 Buster, 11 Bullseye- CentOS 7 (beta)- Fedora 33 and 34 (beta)diff --git a/docs/development/setup-vagrant.md b/docs/development/setup-vagrant.mdindex 9ab3f0a0d71..748cdd38dc7 100644--- a/docs/development/setup-vagrant.md+++ b/docs/development/setup-vagrant.md@@ -49,7 +49,7 @@ a proxy to access the internet.)- **All**: 2GB available RAM, Active broadband internet connection, [GitHub account][set-up-git].- **macOS**: macOS (10.11 El Capitan or newer recommended)-- **Ubuntu LTS**: 20.04+- **Ubuntu LTS**: 20.04 or 22.04- or **Debian**: 10 "buster" or 11 "bullseye"- **Windows**: Windows 64-bit (Win 10 recommended), hardwarevirtualization enabled (VT-x or AMD-V), administrator access.diff --git a/docs/production/requirements.md b/docs/production/requirements.mdindex feecff1dc06..2f064751dd5 100644--- a/docs/production/requirements.md+++ b/docs/production/requirements.md@@ -5,6 +5,7 @@ To run a Zulip server, you will need:- A dedicated machine or VM- A supported OS:- Ubuntu 20.04 Focal+ - Ubuntu 22.04 Jammy- Debian 11 Bullseye- Debian 10 Buster- At least 2GB RAM, and 10GB disk space@@ -33,7 +34,7 @@ on issues you'll encounter](install-existing-server.md).#### Operating system-Ubuntu 20.04 Focal, Debian 11 Bullseye, and Debian 10+Ubuntu 20.04 Focal, Ubuntu 22.04 Jammy, Debian 11 Bullseye, and Debian 10Buster are supported for running Zulip in production. You can alsorun Zulip on other platforms that support Docker using[docker-zulip][docker-zulip-homepage].diff --git a/scripts/lib/install b/scripts/lib/installindex e8ebf793607..7135816edb4 100755--- a/scripts/lib/install+++ b/scripts/lib/install@@ -211,8 +211,8 @@ if [ -f /etc/os-release ]; thenesacfi-case "$os_id$os_version_id" in- debian10 | debian11 | ubuntu20.04) ;;+case "$os_id $os_version_id" in+ 'debian 10' | 'debian 11' | 'ubuntu 20.04' | 'ubuntu 22.04') ;;*)set +xcat <<EOF@@ -223,6 +223,7 @@ Zulip in production is supported only on:- Debian 10 "buster"- Debian 11 "bullseye"- Ubuntu 20.04 LTS "focal"+ - Ubuntu 22.04 LTS "jammy"For more information, see:https://zulip.readthedocs.io/en/latest/production/requirements.htmldiff --git a/scripts/lib/upgrade-zulip-stage-2 b/scripts/lib/upgrade-zulip-stage-2index b00179bb534..d0e7b0a837c 100755--- a/scripts/lib/upgrade-zulip-stage-2+++ b/scripts/lib/upgrade-zulip-stage-2@@ -168,6 +168,7 @@ if os.path.exists("/etc/init.d/postgresql"):("debian", "10"): "11",("debian", "11"): "13",("ubuntu", "20.04"): "12",+ ("ubuntu", "22.04"): "14",("centos", "7"): "11",}if (vendor, os_version) in default_postgresql_version:diff --git a/scripts/setup/apt-repos/zulip/jammy.list b/scripts/setup/apt-repos/zulip/jammy.listnew file mode 100644index 00000000000..68b9bb3fd16--- /dev/null+++ b/scripts/setup/apt-repos/zulip/jammy.list@@ -0,0 +1,6 @@+deb http://apt.postgresql.org/pub/repos/apt/ jammy-pgdg main+deb-src http://apt.postgresql.org/pub/repos/apt/ jammy-pgdg main++# Old versions for https://github.com/pgroonga/pgroonga/issues/203 were not built for jammy+deb http://apt-archive.postgresql.org/pub/repos/apt/ impish-pgdg-archive main+deb-src http://apt-archive.postgresql.org/pub/repos/apt/ impish-pgdg-archive maindiff --git a/tools/ci/build-docker-images b/tools/ci/build-docker-imagesindex e13bb67d792..5cd2af5a8ba 100755--- a/tools/ci/build-docker-images+++ b/tools/ci/build-docker-images@@ -2,6 +2,7 @@set -euxcd "$(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:jammydocker build . --build-arg=BASE_IMAGE=debian:10 --pull --tag=zulip/ci:busterdocker build . --build-arg=BASE_IMAGE=debian:11 --pull --tag=zulip/ci:bullseyedocker build . -f Dockerfile.prod --build-arg=BASE_IMAGE=zulip/ci:buster --build-arg=VERSION=3.4 --tag=zulip/ci:buster-3.4diff --git a/tools/lib/provision.py b/tools/lib/provision.pyindex 5a211075ae2..5e445e240f8 100755--- a/tools/lib/provision.py+++ b/tools/lib/provision.py@@ -87,6 +87,8 @@ elif vendor == "ubuntu" and os_version == "20.04": # focalPOSTGRESQL_VERSION = "12"elif vendor == "ubuntu" and os_version == "21.10": # impishPOSTGRESQL_VERSION = "13"+elif vendor == "ubuntu" and os_version == "22.04": # jammy+ POSTGRESQL_VERSION = "14"elif vendor == "neon" and os_version == "20.04": # KDE NeonPOSTGRESQL_VERSION = "12"elif vendor == "fedora" and os_version == "33":@@ -163,7 +165,7 @@ COMMON_YUM_DEPENDENCIES = []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 ["22.04"]:# For platforms without a PGroonga release, we need to build it# from source.BUILD_PGROONGA_FROM_SOURCE = Truediff --git a/tools/test-install/prepare-base b/tools/test-install/prepare-baseindex 0dea49cf48f..f8c4ea8c9a9 100755--- a/tools/test-install/prepare-base+++ b/tools/test-install/prepare-base@@ -10,7 +10,7 @@ RELEASE="$1"ARCH=amd64 # TODO: maybe i686 toocase "$RELEASE" in- focal)+ focal | jammy)extra_packages=(python3-pip);;*)