mirror of https://github.com/zulip/zulip.git
install: Support Ubuntu 22.04.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
f9997e311c
commit
894a50b5c9
|
@ -114,6 +114,11 @@ jobs:
|
||||||
os: focal
|
os: focal
|
||||||
extra_args: ""
|
extra_args: ""
|
||||||
|
|
||||||
|
- docker_image: zulip/ci:jammy
|
||||||
|
name: Ubuntu 22.04 production install
|
||||||
|
os: jammy
|
||||||
|
extra_args: ""
|
||||||
|
|
||||||
- docker_image: zulip/ci:buster
|
- docker_image: zulip/ci:buster
|
||||||
name: Debian 10 production install with custom db name and user
|
name: Debian 10 production install with custom db name and user
|
||||||
os: buster
|
os: buster
|
||||||
|
|
|
@ -27,13 +27,16 @@ jobs:
|
||||||
- docker_image: zulip/ci:focal
|
- docker_image: zulip/ci:focal
|
||||||
name: Ubuntu 20.04 Focal (Python 3.8, backend)
|
name: Ubuntu 20.04 Focal (Python 3.8, backend)
|
||||||
os: focal
|
os: focal
|
||||||
is_focal: true
|
|
||||||
include_frontend_tests: false
|
include_frontend_tests: false
|
||||||
# Debian 11 ships with Python 3.9.2.
|
# Debian 11 ships with Python 3.9.2.
|
||||||
- docker_image: zulip/ci:bullseye
|
- docker_image: zulip/ci:bullseye
|
||||||
name: Debian 11 Bullseye (Python 3.9, backend)
|
name: Debian 11 Bullseye (Python 3.9, backend)
|
||||||
os: bullseye
|
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: jammy
|
||||||
include_frontend_tests: false
|
include_frontend_tests: false
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -218,7 +221,7 @@ jobs:
|
||||||
retention-days: 60
|
retention-days: 60
|
||||||
|
|
||||||
- name: Check development database build
|
- 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
|
run: ./tools/ci/setup-backend
|
||||||
|
|
||||||
- name: Report status
|
- name: Report status
|
||||||
|
|
|
@ -12,7 +12,7 @@ Contents:
|
||||||
If you'd like to install a Zulip development environment on a computer
|
If you'd like to install a Zulip development environment on a computer
|
||||||
that's running one of:
|
that's running one of:
|
||||||
|
|
||||||
- Ubuntu 20.04 Focal
|
- Ubuntu 20.04 Focal, 22.04 Jammy (beta)
|
||||||
- Debian 10 Buster, 11 Bullseye
|
- Debian 10 Buster, 11 Bullseye
|
||||||
- CentOS 7 (beta)
|
- CentOS 7 (beta)
|
||||||
- Fedora 33 and 34 (beta)
|
- Fedora 33 and 34 (beta)
|
||||||
|
|
|
@ -49,7 +49,7 @@ a proxy to access the internet.)
|
||||||
|
|
||||||
- **All**: 2GB available RAM, Active broadband internet connection, [GitHub account][set-up-git].
|
- **All**: 2GB available RAM, Active broadband internet connection, [GitHub account][set-up-git].
|
||||||
- **macOS**: macOS (10.11 El Capitan or newer recommended)
|
- **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"
|
- or **Debian**: 10 "buster" or 11 "bullseye"
|
||||||
- **Windows**: Windows 64-bit (Win 10 recommended), hardware
|
- **Windows**: Windows 64-bit (Win 10 recommended), hardware
|
||||||
virtualization enabled (VT-x or AMD-V), administrator access.
|
virtualization enabled (VT-x or AMD-V), administrator access.
|
||||||
|
|
|
@ -5,6 +5,7 @@ To run a Zulip server, you will need:
|
||||||
- A dedicated machine or VM
|
- A dedicated machine or VM
|
||||||
- A supported OS:
|
- A supported OS:
|
||||||
- Ubuntu 20.04 Focal
|
- Ubuntu 20.04 Focal
|
||||||
|
- Ubuntu 22.04 Jammy
|
||||||
- Debian 11 Bullseye
|
- Debian 11 Bullseye
|
||||||
- Debian 10 Buster
|
- Debian 10 Buster
|
||||||
- At least 2GB RAM, and 10GB disk space
|
- At least 2GB RAM, and 10GB disk space
|
||||||
|
@ -33,7 +34,7 @@ on issues you'll encounter](install-existing-server.md).
|
||||||
|
|
||||||
#### Operating system
|
#### 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 10
|
||||||
Buster are supported for running Zulip in production. You can also
|
Buster are supported for running Zulip in production. You can also
|
||||||
run Zulip on other platforms that support Docker using
|
run Zulip on other platforms that support Docker using
|
||||||
[docker-zulip][docker-zulip-homepage].
|
[docker-zulip][docker-zulip-homepage].
|
||||||
|
|
|
@ -212,7 +212,7 @@ if [ -f /etc/os-release ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$os_id $os_version_id" in
|
case "$os_id $os_version_id" in
|
||||||
debian10 | debian11 | ubuntu20.04) ;;
|
'debian 10' | 'debian 11' | 'ubuntu 20.04' | 'ubuntu 22.04') ;;
|
||||||
*)
|
*)
|
||||||
set +x
|
set +x
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
@ -223,6 +223,7 @@ Zulip in production is supported only on:
|
||||||
- Debian 10 "buster"
|
- Debian 10 "buster"
|
||||||
- Debian 11 "bullseye"
|
- Debian 11 "bullseye"
|
||||||
- Ubuntu 20.04 LTS "focal"
|
- Ubuntu 20.04 LTS "focal"
|
||||||
|
- Ubuntu 22.04 LTS "jammy"
|
||||||
|
|
||||||
For more information, see:
|
For more information, see:
|
||||||
https://zulip.readthedocs.io/en/latest/production/requirements.html
|
https://zulip.readthedocs.io/en/latest/production/requirements.html
|
||||||
|
|
|
@ -168,6 +168,7 @@ if os.path.exists("/etc/init.d/postgresql"):
|
||||||
("debian", "10"): "11",
|
("debian", "10"): "11",
|
||||||
("debian", "11"): "13",
|
("debian", "11"): "13",
|
||||||
("ubuntu", "20.04"): "12",
|
("ubuntu", "20.04"): "12",
|
||||||
|
("ubuntu", "22.04"): "14",
|
||||||
("centos", "7"): "11",
|
("centos", "7"): "11",
|
||||||
}
|
}
|
||||||
if (vendor, os_version) in default_postgresql_version:
|
if (vendor, os_version) in default_postgresql_version:
|
||||||
|
|
|
@ -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 main
|
|
@ -2,6 +2,7 @@
|
||||||
set -eux
|
set -eux
|
||||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
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: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=debian:10 --pull --tag=zulip/ci:buster
|
docker build . --build-arg=BASE_IMAGE=debian:10 --pull --tag=zulip/ci:buster
|
||||||
docker build . --build-arg=BASE_IMAGE=debian:11 --pull --tag=zulip/ci:bullseye
|
docker build . --build-arg=BASE_IMAGE=debian:11 --pull --tag=zulip/ci:bullseye
|
||||||
docker build . -f Dockerfile.prod --build-arg=BASE_IMAGE=zulip/ci:buster --build-arg=VERSION=3.4 --tag=zulip/ci:buster-3.4
|
docker build . -f Dockerfile.prod --build-arg=BASE_IMAGE=zulip/ci:buster --build-arg=VERSION=3.4 --tag=zulip/ci:buster-3.4
|
||||||
|
|
|
@ -87,6 +87,8 @@ elif vendor == "ubuntu" and os_version == "20.04": # focal
|
||||||
POSTGRESQL_VERSION = "12"
|
POSTGRESQL_VERSION = "12"
|
||||||
elif vendor == "ubuntu" and os_version == "21.10": # impish
|
elif vendor == "ubuntu" and os_version == "21.10": # impish
|
||||||
POSTGRESQL_VERSION = "13"
|
POSTGRESQL_VERSION = "13"
|
||||||
|
elif vendor == "ubuntu" and os_version == "22.04": # jammy
|
||||||
|
POSTGRESQL_VERSION = "14"
|
||||||
elif vendor == "neon" and os_version == "20.04": # KDE Neon
|
elif vendor == "neon" and os_version == "20.04": # KDE Neon
|
||||||
POSTGRESQL_VERSION = "12"
|
POSTGRESQL_VERSION = "12"
|
||||||
elif vendor == "fedora" and os_version == "33":
|
elif vendor == "fedora" and os_version == "33":
|
||||||
|
@ -163,7 +165,7 @@ COMMON_YUM_DEPENDENCIES = [
|
||||||
]
|
]
|
||||||
|
|
||||||
BUILD_PGROONGA_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 ["22.04"]:
|
||||||
# For platforms without a PGroonga release, we need to build it
|
# For platforms without a PGroonga release, we need to build it
|
||||||
# from source.
|
# from source.
|
||||||
BUILD_PGROONGA_FROM_SOURCE = True
|
BUILD_PGROONGA_FROM_SOURCE = True
|
||||||
|
|
|
@ -10,7 +10,7 @@ RELEASE="$1"
|
||||||
ARCH=amd64 # TODO: maybe i686 too
|
ARCH=amd64 # TODO: maybe i686 too
|
||||||
|
|
||||||
case "$RELEASE" in
|
case "$RELEASE" in
|
||||||
focal)
|
focal | jammy)
|
||||||
extra_packages=(python3-pip)
|
extra_packages=(python3-pip)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in New Issue