UPGRADING: Indent and set langauges on code blocks.

This commit is contained in:
Alex Vandiver
2022-12-05 19:04:16 -05:00
committed by Alex Vandiver
parent 16ed3459ff
commit d17d4d8be0

View File

@@ -49,14 +49,14 @@ section.
3. Verify that your updated `docker-compose.yml` points to the desired image version,
e.g.:
```yml
```yaml
zulip:
image: "zulip/docker-zulip:2.0.1-0"
```
4. You can execute the upgrade by running:
```
```shell
# Stops the old zulip container; this begins your downtime
docker-compose stop
# Boots the new zulip container; this ends your downtime
@@ -68,7 +68,7 @@ docker-compose rm
That's it! Zulip is now running the updated version.
You can confirm you're running the latest version by running:
```bash
```shell
docker-compose exec -u zulip zulip cat /home/zulip/deployments/current/version.py
```
@@ -78,7 +78,7 @@ docker-compose exec -u zulip zulip cat /home/zulip/deployments/current/version.p
specify the Git commit you'd like to build the zulip container from.
E.g.:
```
```yaml
zulip:
# image: "zulip/docker-zulip:2.0.1-0"
build:
@@ -89,10 +89,9 @@ docker-compose exec -u zulip zulip cat /home/zulip/deployments/current/version.p
ZULIP_GIT_REF: master
```
You can set `ZULIP_GIT_URL` to any clone of the zulip/zulip git
repository, and `ZULIP_GIT_REF` to be any ref name in that repository
(e.g. `master` or `1.9.0` or
`445932cc8613c77ced023125248c8b966b3b7528`).
You can set `ZULIP_GIT_URL` to any clone of the zulip/zulip git repository,
and `ZULIP_GIT_REF` to be any ref name in that repository (e.g. `master` or
`1.9.0` or `445932cc8613c77ced023125248c8b966b3b7528`).
2. Run `docker-compose build zulip` to build a Zulip Docker image from
the specified Git version.
@@ -133,7 +132,7 @@ occurences of `/opt/docker/zulip/postgresql/data` with your path.
3. Create a new (upgraded) Postgres container using a different data directory:
```
```shell
docker run -d \
--name postgresnew \
-e POSTGRES_DB=zulip \
@@ -146,14 +145,14 @@ docker run -d \
4. Use `pg_dumpall` to dump all data from the existing Postgres container to
the new Postgres container:
```
```shell
docker-compose exec database pg_dumpall -U postgres | \
docker exec -i postgresnew psql -U postgres
```
5. Stop and remove both Postgres containers:
```
```shell
docker-compose rm --stop database
docker rm --stop postgresnew
```
@@ -164,20 +163,20 @@ docker rm --stop postgresnew
7. Replace the old Postgres data directory with upgraded data directory:
```
```shell
mv /opt/docker/zulip/postgresql/data /opt/docker/zulip/postgresql/old
mv /opt/docker/zulip/postgresql/new /opt/docker/zulip/postgresql/data
```
8. Delete the old existing containers:
```
```shell
docker-compose rm
```
9. Start Zulip up again:
```
```shell
docker-compose up
```