mirror of
https://github.com/coltoneshaw/CS-Repro-Mattermost.git
synced 2025-12-23 18:11:34 +01:00
Added downgrade and upgrade docs
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,5 +1,5 @@
|
||||
license.mattermost
|
||||
|
||||
license.txt
|
||||
|
||||
## Ignoring keycloak so it can be pulled already setup.
|
||||
volumes
|
||||
|
||||
9
Makefile
9
Makefile
@@ -36,6 +36,15 @@ reset:
|
||||
@make delete-data
|
||||
@make start
|
||||
|
||||
downgrade:
|
||||
@echo "Downgrading Mattermost..."
|
||||
@docker stop cs-repro-mattermost || true && docker rm cs-repro-mattermost || true
|
||||
@docker stop cs-repro-postgres || true && docker rm cs-repro-postgres || true
|
||||
rm -rf ./volumes/mattermost
|
||||
rm -rf ./volumes/db
|
||||
docker-compose up -d
|
||||
@make setup-mattermost
|
||||
|
||||
delete-dockerfiles:
|
||||
@echo "Deleting data..."
|
||||
@docker-compose rm
|
||||
|
||||
32
README.md
32
README.md
@@ -71,3 +71,35 @@ Destroys everything (Except your life).
|
||||
| leela | leela | User | Member | Yes | Yes |
|
||||
| zoidberg | zoidberg | User | Member | Yes | Yes |
|
||||
| amy | amy | User | Member | Yes | Yes |
|
||||
|
||||
# Guides
|
||||
|
||||
## How to upgrade
|
||||
|
||||
1. Modify the line in the `docker-compose.yml` file to be the version you want
|
||||
|
||||
You're just replacing the tag at the end, ths one is `7.7` for example. It must be a version of Mattermost that exists on Docker.
|
||||
|
||||
```
|
||||
mattermost/mattermost-enterprise-edition:release-7.7
|
||||
```
|
||||
2. Run `make restart-mattermost`
|
||||
This will bounce the Mattermost container only.
|
||||
|
||||
## How to upgrade
|
||||
|
||||
Doing this will wipe anything you have in the database and any existing Mattermost config. If you desire to manually downgrade, follow the upgrade steps but in reverse. Note you might have some issues with the patch config and such.
|
||||
|
||||
1. Modify the line in the `docker-compose.yml` file to be the version you want
|
||||
|
||||
You're just replacing the tag at the end, ths one is `7.7` for example. It must be a version of Mattermost that exists on Docker.
|
||||
|
||||
```
|
||||
mattermost/mattermost-enterprise-edition:release-7.7
|
||||
```
|
||||
|
||||
2. Run `make downgrade`
|
||||
This will:
|
||||
- delete the database
|
||||
- Restart the database container
|
||||
- Restart the Mattermost container
|
||||
@@ -63,7 +63,7 @@ services:
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
image: mattermost/mattermost-enterprise-edition:release-7.7
|
||||
image: mattermost/mattermost-enterprise-edition:release-7.8
|
||||
restart: unless-stopped
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
|
||||
Reference in New Issue
Block a user