Merge remote-tracking branch 'eosophob1a/main' into main

This commit is contained in:
todd
2023-03-20 17:37:56 -04:00
5 changed files with 18 additions and 10 deletions

2
.gitignore vendored
View File

@@ -4,4 +4,4 @@ license.txt
## Ignoring keycloak so it can be pulled already setup. ## Ignoring keycloak so it can be pulled already setup.
volumes volumes
.DS_Store **/.DS_Store

View File

@@ -29,7 +29,7 @@ start:
stop: stop:
@echo "Stopping..." @echo "Stopping..."
@docker-compose down @docker-compose stop
@echo "Done" @echo "Done"
restart: restart:

View File

@@ -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. You'll be prompted on setting up the test data.
``` ```make
make start make start
``` ```
3. Sign into Mattermost 3. Sign into Mattermost
- You can use any of the accounts to sign in. - 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. - 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 | | zoidberg | zoidberg | User | Member | Yes | Yes |
| amy | amy | 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 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. 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 mattermost/mattermost-enterprise-edition:release-7.7
``` ```
2. Run `make restart-mattermost` 2. Run `make restart-mattermost`
This will bounce the Mattermost container only. 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. 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. 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 mattermost/mattermost-enterprise-edition:release-7.7
``` ```
2. Run `make downgrade` 2. Run `make downgrade`
This will: This will:
- delete the database - delete the database
- Restart the database container - Restart the database container
- Restart the Mattermost container - Restart the Mattermost container

View File

@@ -3,7 +3,7 @@
logins () { logins () {
echo =========================================================== echo ===========================================================
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 "- Keycloak: http://localhost:8080" with 'admin' / 'admin'
echo "- Grafana: http://localhost:3000" with 'admin' / 'admin' echo "- Grafana: http://localhost:3000" with 'admin' / 'admin'
echo " - All Mattermost Grafana charts are setup." echo " - All Mattermost Grafana charts are setup."

View File

@@ -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 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 "If you don't want to do this, just press enter."
echo echo
read -p "Y / N " -n 1 -r read -p "y / N " -n 1 -r
echo # (optional) move to a new line echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]; then if [[ $REPLY =~ ^[Yy]$ ]]; then
echo =========================================================== echo ===========================================================
@@ -30,6 +30,9 @@ setup() {
echoLogins echoLogins
exit 0 exit 0
else
echo "skipping test Data setup for Mattermost"
exit 0
fi fi
fi fi