842 Commits

Author SHA1 Message Date
Alex Vandiver
8823d783a4 upgrade-postgresql: Swap order of cleanup steps in trap.
We need to remove the container before removing the volume, otherwise
the cleanup will fail because the volume is in use.
2023-02-21 10:17:36 -08:00
Alex Vandiver
accea238ba upgrade-postgresql: Check the version of docker-compose first.
We use `docker-compose up --wait` which was introduced in
docker-compose version 2.1.1; check the version first.
2023-02-21 10:17:36 -08:00
Alex Vandiver
ba2ae48cc1 Update to Zulip Server 6.1. 6.1-0 2023-01-23 13:26:41 -05:00
i-ky
e28311fab2 Fix broken link 2022-12-20 17:58:59 -08:00
maltokyo
0f0488a9d8 Update to Zulip Server 6.0. 6.0-0 2022-12-07 11:21:44 -05:00
Alex Vandiver
53de96eca2 UPGRADING: Document managed-volume and PostgreSQL upgrades.
This returns the manual steps for upgrading PostgreSQL which were
removed in cd348fb093, and documents the steps required to move a
docker-compose deploy to using Docker-managed volumes.
2022-12-07 00:41:31 -05:00
Alex Vandiver
86f0556240 UPGRADING: Re-level and reword headings. 2022-12-07 00:41:31 -05:00
Alex Vandiver
e065ed603c UPGRADING: Re-wrap. 2022-12-07 00:41:31 -05:00
Alex Vandiver
bb9ff6734e UPGRADING: Split out command to run into a code block. 2022-12-07 00:41:31 -05:00
Alex Vandiver
07518e4cca UPGRADING: Refer to PostgreSQL consistently. 2022-12-07 00:41:31 -05:00
Alex Vandiver
d17d4d8be0 UPGRADING: Indent and set langauges on code blocks. 2022-12-07 00:41:31 -05:00
Alex Vandiver
16ed3459ff UPGRADING: Split out of README.md. 2022-12-07 00:41:31 -05:00
Alex Vandiver
3ec2386919 README.md: Run prettier. 2022-12-07 00:41:31 -05:00
Matt Keller
e894ab95c8 postgresql: Update the default PostgreSQL version to 14. 2022-11-28 23:17:53 -05:00
Alex Vandiver
cd348fb093 postgresql: Add a script to upgrade PostgreSQL data.
This scripts the steps given in the upgrade documentation, altered for
supporting Docker managed volumes.
2022-11-28 23:17:05 -05:00
Adarsh PK
74aea021ce docker-compose: Switch to docker managed volumes.
Docker-managed volumes[^1] are more cross-platform compatible than
hard-coded paths, and will work even if the Docker user cannot write
to the arbitrary path of `/opt/docker/zulip` on the Docker host.

[^1]: https://docs.docker.com/storage/volumes/

Co-authored-by: Alex Vandiver <alexmv@zulip.com>
2022-11-28 21:27:00 -05:00
AUX
24678b6e5b Use ISO 8601 date format for backup filenames
With previous `%D` format preventable errors like

```
tar (child): /data/backups/backup-09/05/22-03-22-03.tar.gz: Cannot open: No such file or directory
```

will occur. Let's use a more sane[^1] date format where possible.

The -I flag to date(1) was added in roughly 1999[^2] and is portable across
GNU coreutils and BusyBox. Piping to tr(1) to remove colons in filenames
is largely a Windows-compatibility concern, as Win32 does not allow for
that character in filenames[^3], and it's possible that the backups target
directory could be a volume mount to a Windows host (for example on
Docker Desktop For Windows).

[^1]: https://xkcd.com/1179/
[^2]: https://unix.stackexchange.com/a/164834
[^3]: https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions

Co-Authored-By: Josh Klar <josh@zulip.com>
2022-11-28 15:09:15 -05:00
AUX
33edaf380b Consolidate backup timestamp expressions 2022-11-28 15:09:15 -05:00
Lorenzo Milesi
576a71e1b8 docker-compose: Default all services to restart unless-stopped.
`restart:` was previously inconsistently provided to service definitions
(only memcached and rabbitmq) and at that, the restart policy was
`always`. `always` can lead to surprising behavior where restarts of the
docker daemon will resurrect explicitly-stopped containers, whereas
`unless-stopped` will leave explicitly-stopped containers stopped.

Set all services in the docker-compose file to `restart:
unless-stopped`.

Further reading: https://linuxhandbook.com/docker-restart-policy/
2022-11-22 17:13:17 -08:00
Alex Vandiver
65f33b502f helm: Regenerate with helm-docs. 2022-11-16 15:14:55 -05:00
Alex Vandiver
6d3b6fb64a Update Helm chart to 0.4.0 with Zulip Server 5.7. 2022-11-16 10:52:32 -05:00
Alex Vandiver
22f90023e9 Update versions for Zulip Server 5.7. 5.7-0 2022-11-16 10:52:06 -05:00
Matt Keller
6fe46d19e1 Add a section on updating postgresql to 14.
Tweaked and confirmed version of the galexrt section below it.
2022-11-04 11:19:16 -07:00
Anders Kaseorg
b1661d1a49 Update versions for Zulip Server 5.6.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
5.6-0
2022-08-24 16:40:10 -07:00
Anders Kaseorg
6b1464b62f Update versions for Zulip Server 5.5.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
5.5-0
2022-07-21 18:13:41 -07:00
Alex Vandiver
d2cd253b38 Update versions for Zulip Server 5.4. 5.4-0 2022-07-11 23:57:59 -07:00
Alex Vandiver
4bdfa82456 Update versions for Zulip Server 5.3. 5.3-0 2022-06-21 14:15:49 -07:00
Alex Vandiver
ba94d52905 k8s: Run prettier over CHANGELOG.md. 2022-06-21 13:36:54 -07:00
Kevin Köllmann
b824d13093 Fix missing BACKUP_FILE variable missing in basename command 2022-06-02 12:23:02 -07:00
Kevin Köllmann
454193ced5 Fix usage of date command 2022-06-02 12:23:02 -07:00
Kevin Köllmann
be5ee98004 Fix path to entrypoint script in mail command 2022-06-02 12:23:02 -07:00
Ben
e2503cd4c9 Add a setting for load balancer IPs. 2022-06-02 14:01:24 -04:00
Gergo Torcsvari
26c0b812e8 Add helm chart
A helm chart is added for the installation of Zulip into Kubernetes
clusters. The chart is based on a version of PR #287, but contains
significant changes.

The chart depends on Bitnami helm charts for the installation of
Memcached, Postgresql, Rabbitmq and Redis.

The chart includes the possibility to add `postSetup` scripts which
are mounted to `/data/post-setup.d` and executed by the docker-zulip
Docker container.

More information can be found in the chart's README in
kubernetes/chart/zulip/README.md
2022-05-10 17:45:49 -07:00
Alex Vandiver
461360d332 Update versions for Zulip Server 5.2. 5.2-0 2022-05-04 11:22:42 -07:00
Alex Vandiver
133adff8b9 Update versions for Zulip Server 5.1. 5.1-0 2022-04-01 23:05:05 -07:00
Alex Vandiver
5ca15b51c7 Update versions for Zulip Server 5.0. 5.0-0 2022-03-29 10:54:40 -07:00
Maarten de Waard
6300fb4700 config: Add SOCIAL_AUTH_OIDC_ENABLED_IDPS.
`SOCIAL_AUTH_OIDC_ENABLED_IDPS` is a dict; add it to the list of
settings that are not strings.
2022-03-21 11:22:02 -04:00
Mateusz Mandera
6d6a822274 Fix "--build-args" -> "--build-arg" typo in a comment.
The argument is --build-arg.
2022-03-18 17:50:33 -07:00
Alex Vandiver
c53d0dc19f Update versions for Zulip Server 4.11. 4.11-0 2022-03-15 14:07:28 -07:00
Mateusz Mandera
33393706fd k8s: Set up correct secure configuration for the memcached container.
This is important for security of the container and mimics how we do it
in docker-compose.
2022-03-09 09:52:38 -08:00
Mateusz Mandera
71e98e021c k8s: Set redis password when setting up the container.
A password needs to be set or Zulip is unable to connect to redis.
This is how docker-compose handles this as well.
2022-03-09 09:52:38 -08:00
Mateusz Mandera
188e08f009 k8s: Update redis and memcached images used.
The quai.io repo has outdated, insecure versions.
We can just use redis/memcached:alpine like in docker-compose.
2022-03-09 09:52:38 -08:00
Alex Vandiver
fafaa9d019 Update versions for Zulip Server 4.10. 4.10-0 2022-02-25 13:55:45 -08:00
Alex Vandiver
139e60a00f Update versions for Zulip Server 4.9. 4.9-0 2022-01-24 18:33:04 -08:00
Alex Vandiver
e683bcb286 k8s: Add a missing SETTING_ prefix for push bouncer config. 2022-01-10 14:24:38 -08:00
Alex Vandiver
9a83790bd4 Use deploy hook directory for certbot.
The change in flag name is necessary after zulip/zulip#20512.
2021-12-10 14:15:53 -08:00
Alex Vandiver
a8d13a0c66 Release 4.8-1.
Due to a Docker caching bug, 4.8-0 was mistakenly built off of `main`,
not the `4.8` tag.
4.8-1
2021-12-09 13:03:53 -08:00
Lorenzo Milesi
4b20fa5e1e Write AUTH_LDAP_GLOBAL_OPTIONS as array.
This is required for connecting to a LDAPS server without validating certificators:
```
SETTING_AUTH_LDAP_GLOBAL_OPTIONS: "{ ldap.OPT_X_TLS_REQUIRE_CERT: ldap.OPT_X_TLS_NEVER }"
```

Using `SETTING_AUTH_LDAP_CONNECTION_OPTIONS` doesn't work.
2021-12-07 15:24:33 -08:00
Alex Vandiver
ee46776043 Update puppet class for renaming in Zulip 4.0. 2021-12-01 16:10:48 -08:00
Alex Vandiver
e57a391e4b Update versions for Zulip Server 4.8. 4.8-0 2021-12-01 15:49:45 -08:00