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: Resupport Ubuntu 22.04.

Anders Kaseorge95264101344
diff --git a/.github/workflows/production-suite.yml b/.github/workflows/production-suite.yml
index a5e8d44de02..864b75b372e 100644
--- a/.github/workflows/production-suite.yml
+++ b/.github/workflows/production-suite.yml
@@ -106,13 +106,17 @@ jobs:
strategy:
fail-fast: false
matrix:
+ extra_args: [""]
include:
# Docker images are built from 'tools/ci/Dockerfile'; the comments at
# the top explain how to build and upload these images.
- docker_image: zulip/ci:focal
name: Ubuntu 20.04 production install
os: focal
- extra_args: ""
+
+ - docker_image: zulip/ci:jammy
+ name: Ubuntu 22.04 production install
+ os: jammy
- docker_image: zulip/ci:bullseye
name: Debian 11 production install with custom db name and user
diff --git a/.github/workflows/zulip-ci.yml b/.github/workflows/zulip-ci.yml
index 57f4bec501a..46227a495e8 100644
--- a/.github/workflows/zulip-ci.yml
+++ b/.github/workflows/zulip-ci.yml
@@ -15,6 +15,8 @@ jobs:
strategy:
fail-fast: false
matrix:
+ include_documentation_tests: [false]
+ include_frontend_tests: [false]
include:
# Base images are built using `tools/ci/Dockerfile.prod.template`.
# The comments at the top explain how to build and upload these images.
@@ -23,13 +25,15 @@ jobs:
name: Ubuntu 20.04 (Python 3.8, backend + frontend)
os: focal
include_frontend_tests: true
- include_documentation_tests: false
# Debian 11 ships with Python 3.9.2.
- docker_image: zulip/ci:bullseye
name: Debian 11 (Python 3.9, backend + documentation)
os: bullseye
include_documentation_tests: true
- include_frontend_tests: false
+ # Ubuntu 22.04 ships with Python 3.10.4.
+ - docker_image: zulip/ci:jammy
+ name: Ubuntu 22.04 (Python 3.10, backend)
+ os: jammy
runs-on: ubuntu-latest
name: ${{ matrix.name }}
diff --git a/docs/development/setup-advanced.md b/docs/development/setup-advanced.md
index dc018a88ce5..b400ecf0b55 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 computer
that's running one of:
-- Ubuntu 20.04
+- Ubuntu 20.04, 22.04
- Debian 11
- CentOS 7 (beta)
- Fedora 33 and 34 (beta)
diff --git a/docs/development/setup-vagrant.md b/docs/development/setup-vagrant.md
index 55e82cad480..17d6c115012 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
- **Debian**: 11
- **Windows**: Windows 64-bit (Win 10 recommended), hardware
virtualization enabled (VT-x or AMD-V), administrator access.
diff --git a/docs/production/requirements.md b/docs/production/requirements.md
index bd96f550c68..ba37e6ae6ca 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
+ - Ubuntu 22.04
- Debian 11
- At least 2 GB RAM, and 10 GB disk space
- If you expect 100+ users: 4 GB RAM, and 2 CPUs
@@ -32,7 +33,7 @@ on issues you'll encounter](install-existing-server.md).
#### Operating system
-Ubuntu 20.04 and Debian 11
+Ubuntu 20.04, Ubuntu 22.04, and Debian 11
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 328de863fb6..814336191a5 100755
--- a/scripts/lib/install
+++ b/scripts/lib/install
@@ -212,7 +212,7 @@ if [ -f /etc/os-release ]; then
fi
case "$os_id $os_version_id" in
- 'debian 11' | 'ubuntu 20.04') ;;
+ 'debian 11' | 'ubuntu 20.04' | 'ubuntu 22.04') ;;
*)
set +x
cat <<EOF
@@ -222,6 +222,7 @@ Unsupported OS release: $os_id $os_version_id
Zulip in production is supported only on:
- Debian 11
- Ubuntu 20.04 LTS
+ - Ubuntu 22.04 LTS
For more information, see:
https://zulip.readthedocs.io/en/latest/production/requirements.html
diff --git a/scripts/setup/apt-repos/zulip/jammy.list b/scripts/setup/apt-repos/zulip/jammy.list
index 68b9bb3fd16..3c32ad3445a 100644
--- a/scripts/setup/apt-repos/zulip/jammy.list
+++ b/scripts/setup/apt-repos/zulip/jammy.list
@@ -4,3 +4,9 @@ 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 main
+deb http://archive.ubuntu.com/ubuntu impish main
+deb http://archive.ubuntu.com/ubuntu impish-updates main
+deb http://archive.ubuntu.com/ubuntu impish-security main
+
+deb http://ppa.launchpad.net/groonga/ppa/ubuntu jammy main
+deb-src http://ppa.launchpad.net/groonga/ppa/ubuntu jammy main
diff --git a/tools/lib/provision.py b/tools/lib/provision.py
index 5455172cadd..258d9f8de46 100755
--- a/tools/lib/provision.py
+++ b/tools/lib/provision.py
@@ -163,7 +163,7 @@ COMMON_YUM_DEPENDENCIES = [
]
BUILD_PGROONGA_FROM_SOURCE = False
-if vendor == "debian" and os_version in [] or vendor == "ubuntu" and os_version in ["22.04"]:
+if vendor == "debian" and os_version in [] 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