Added echo urls and check mattermost when container changes

This commit is contained in:
coltoneshaw
2023-02-16 14:44:31 -05:00
parent 383b4d6041
commit c3879e0fc5
3 changed files with 34 additions and 0 deletions

View File

@@ -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..."

17
scripts/general.sh Executable file
View File

@@ -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 ===========================================================
}
"$@"

View File

@@ -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
}
"$@"