forked from mrckndt/CS-Repro-Mattermost
Merge remote-tracking branch 'eosophob1a/main' into main
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -4,4 +4,4 @@ license.txt
|
||||
## Ignoring keycloak so it can be pulled already setup.
|
||||
volumes
|
||||
|
||||
.DS_Store
|
||||
**/.DS_Store
|
||||
2
Makefile
2
Makefile
@@ -29,7 +29,7 @@ start:
|
||||
|
||||
stop:
|
||||
@echo "Stopping..."
|
||||
@docker-compose down
|
||||
@docker-compose stop
|
||||
@echo "Done"
|
||||
|
||||
restart:
|
||||
|
||||
17
README.md
17
README.md
@@ -17,11 +17,12 @@ Additionally, the keycloak container can take up to 5 minutes to spin up. If it'
|
||||
|
||||
You'll be prompted on setting up the test data.
|
||||
|
||||
```
|
||||
```make
|
||||
make start
|
||||
```
|
||||
|
||||
3. Sign into Mattermost
|
||||
|
||||
- You can use any of the accounts to sign in.
|
||||
- The keycloak container can be **very** picky sometimes and require a restart of just that container to sign in with that method the first time.
|
||||
|
||||
@@ -72,21 +73,23 @@ Destroys everything (Except your life).
|
||||
| zoidberg | zoidberg | User | Member | Yes | Yes |
|
||||
| amy | amy | User | Member | Yes | Yes |
|
||||
|
||||
# Guides
|
||||
## Guides
|
||||
|
||||
## How to upgrade
|
||||
### 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.
|
||||
|
||||
```
|
||||
```bash
|
||||
mattermost/mattermost-enterprise-edition:release-7.7
|
||||
```
|
||||
|
||||
2. Run `make restart-mattermost`
|
||||
|
||||
This will bounce the Mattermost container only.
|
||||
|
||||
## How to upgrade
|
||||
### How to Downgrade
|
||||
|
||||
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.
|
||||
|
||||
@@ -94,12 +97,14 @@ Doing this will wipe anything you have in the database and any existing Mattermo
|
||||
|
||||
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.
|
||||
|
||||
```
|
||||
```bash
|
||||
mattermost/mattermost-enterprise-edition:release-7.7
|
||||
```
|
||||
|
||||
2. Run `make downgrade`
|
||||
|
||||
This will:
|
||||
|
||||
- delete the database
|
||||
- Restart the database container
|
||||
- Restart the Mattermost container
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
logins () {
|
||||
echo ===========================================================
|
||||
echo
|
||||
echo "- Mattermost: http://localhost:8065" with the logins above
|
||||
echo "- Mattermost: http://localhost:8065" with the logins above if you ran setup
|
||||
echo "- Keycloak: http://localhost:8080" with 'admin' / 'admin'
|
||||
echo "- Grafana: http://localhost:3000" with 'admin' / 'admin'
|
||||
echo " - All Mattermost Grafana charts are setup."
|
||||
|
||||
@@ -15,7 +15,7 @@ setup() {
|
||||
echo "If you are curious about the config changes check out the file ./files/mattermost/defaultConfig.json"
|
||||
echo "If you don't want to do this, just press enter."
|
||||
echo
|
||||
read -p "Y / N " -n 1 -r
|
||||
read -p "y / N " -n 1 -r
|
||||
echo # (optional) move to a new line
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||
echo ===========================================================
|
||||
@@ -30,6 +30,9 @@ setup() {
|
||||
|
||||
echoLogins
|
||||
exit 0
|
||||
else
|
||||
echo "skipping test Data setup for Mattermost"
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user