From c3879e0fc5153a3255f46327ea0b3df36fd4bc20 Mon Sep 17 00:00:00 2001 From: coltoneshaw Date: Thu, 16 Feb 2023 14:44:31 -0500 Subject: [PATCH] Added echo urls and check mattermost when container changes --- Makefile | 9 +++++++++ scripts/general.sh | 17 +++++++++++++++++ scripts/mattermost.sh | 8 ++++++++ 3 files changed, 34 insertions(+) create mode 100755 scripts/general.sh diff --git a/Makefile b/Makefile index 88392db..3270e97 100644 --- a/Makefile +++ b/Makefile @@ -8,17 +8,24 @@ logs: setup-mattermost: @./scripts/mattermost.sh setup +check-mattermost: + @./scripts/mattermost.sh waitForStart + backup-keycloak: @./scripts/keycloak.sh backup restore-keycloak: @./scripts/keycloak.sh restore +echo-logins: + @./scripts/general.sh logins + start: @echo "Starting..." @make restore-keycloak @docker-compose up -d @make setup-mattermost + @make echo-logins stop: @echo "Stopping..." @@ -27,9 +34,11 @@ stop: restart: @docker-compose restart + @make check-mattermost restart-mattermost: @docker restart cs-repro-mattermost + @make check-mattermost reset: @echo "Resetting..." diff --git a/scripts/general.sh b/scripts/general.sh new file mode 100755 index 0000000..7af7ad4 --- /dev/null +++ b/scripts/general.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +logins () { + echo =========================================================== + echo + echo "- Mattermost: http://localhost:8065" with the logins above + echo "- Keycloak: http://localhost:8080" with 'admin' / 'admin' + echo "- Grafana: http://localhost:3000" with 'admin' / 'admin' + echo " - All Mattermost Grafana charts are setup." + echo " - For more info https://github.com/coltoneshaw/CS-Repro-Mattermost#use-grafana" + echo "- Prometheus: http://localhost:9090" + echo "- PostgreSQL" "localhost:5432" with 'mmuser' / 'mmuser_password' + echo + echo =========================================================== +} + +"$@" \ No newline at end of file diff --git a/scripts/mattermost.sh b/scripts/mattermost.sh index 606644b..9e28c32 100755 --- a/scripts/mattermost.sh +++ b/scripts/mattermost.sh @@ -74,4 +74,12 @@ echoLogins() { echo ======================================================================== } +upgrade () { + sed -i "s#7.7#7.8#g" docker-compose.yml + sed -i 's/release-.*/release-6.88/' docker-compose.yml + + sed -i '/release-.*/release-6.88/' ${PWD}/docker-compose.yml + +} + "$@"