Upgrade development environment to Ubuntu 22.04.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg 2024-03-25 12:45:58 -07:00
parent bedbaa3a41
commit e535c96e40
6 changed files with 7 additions and 7 deletions

2
Vagrantfile vendored
View File

@ -15,7 +15,7 @@ Vagrant.configure("2") do |config|
ubuntu_mirror = "" ubuntu_mirror = ""
vboxadd_version = nil vboxadd_version = nil
config.vm.box = "bento/ubuntu-20.04" config.vm.box = "bento/ubuntu-22.04"
config.vm.synced_folder ".", "/vagrant", disabled: true config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder ".", "/srv/zulip", docker_consistency: "z" config.vm.synced_folder ".", "/srv/zulip", docker_consistency: "z"

View File

@ -8,7 +8,7 @@ $ vagrant ssh
You should see output that starts like this: You should see output that starts like this:
```console ```console
Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) Welcome to Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-92-generic x86_64)
``` ```
Congrats, you're now inside the Zulip development environment! Congrats, you're now inside the Zulip development environment!

View File

@ -1,7 +1,7 @@
The first time you run this command it will take some time because Vagrant The first time you run this command it will take some time because Vagrant
does the following: does the following:
- downloads the base Ubuntu 20.04 virtual machine/Docker image - downloads the base Ubuntu 22.04 virtual machine/Docker image
- configures this virtual machine/container for use with Zulip, - configures this virtual machine/container for use with Zulip,
- creates a shared directory mapping your clone of the Zulip code inside the - creates a shared directory mapping your clone of the Zulip code inside the
virtual machine/container at `~/zulip` virtual machine/container at `~/zulip`

View File

@ -130,7 +130,7 @@ so they are notified.
- Check "Monitoring", "IPv6", and "User data" - Check "Monitoring", "IPv6", and "User data"
- Paste the contents of `tools/droplets/new-droplet-image` into the - Paste the contents of `tools/droplets/new-droplet-image` into the
text box which says `Enter user data here...` text box which says `Enter user data here...`
- Name it e.g. `base-ubuntu-20-04.zulipdev.org` - Name it e.g. `base-ubuntu-22-04.zulipdev.org`
1. Add an A record for `base.zulipdev.org` to point to the new host. 1. Add an A record for `base.zulipdev.org` to point to the new host.
1. Wait for the host to boot. 1. Wait for the host to boot.
1. `scp tools/droplets/new-droplet-image base.zulipdev.org:/tmp/new-droplet-image` 1. `scp tools/droplets/new-droplet-image base.zulipdev.org:/tmp/new-droplet-image`

View File

@ -1,4 +1,4 @@
FROM ubuntu:20.04 FROM ubuntu:22.04
ARG UBUNTU_MIRROR ARG UBUNTU_MIRROR

View File

@ -12,8 +12,8 @@ set -o pipefail
# Set the MOTD on the system to have Zulip instructions # Set the MOTD on the system to have Zulip instructions
sudo ln -nsf /srv/zulip/tools/setup/dev-motd /etc/update-motd.d/99-zulip-dev sudo ln -nsf /srv/zulip/tools/setup/dev-motd /etc/update-motd.d/99-zulip-dev
sudo rm -f /etc/update-motd.d/10-help-text sudo rm -f /etc/update-motd.d/10-help-text /etc/update-motd.d/99-bento
sudo dpkg --purge landscape-client landscape-common ubuntu-release-upgrader-core update-manager-core update-notifier-common ubuntu-server sudo dpkg --purge landscape-common
sudo dpkg-divert --add --rename /etc/default/motd-news sudo dpkg-divert --add --rename /etc/default/motd-news
sudo sh -c 'echo ENABLED=0 > /etc/default/motd-news' sudo sh -c 'echo ENABLED=0 > /etc/default/motd-news'