forked from mrckndt/CS-Repro-Mattermost
update docker compose cli conventions
This commit is contained in:
28
Makefile
28
Makefile
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
logs:
|
logs:
|
||||||
@echo "Following logs..."
|
@echo "Following logs..."
|
||||||
@docker-compose logs --follow
|
@docker compose logs --follow
|
||||||
@echo "Done"
|
@echo "Done"
|
||||||
|
|
||||||
setup-mattermost:
|
setup-mattermost:
|
||||||
@@ -36,11 +36,11 @@ run:
|
|||||||
|
|
||||||
run-core:
|
run-core:
|
||||||
@echo "Starting the core services... hang in there."
|
@echo "Starting the core services... hang in there."
|
||||||
@docker-compose up -d postgres openldap prometheus grafana elasticsearch mattermost keycloak loki alloy
|
@docker compose up -d postgres openldap prometheus grafana elasticsearch mattermost keycloak loki alloy
|
||||||
|
|
||||||
run-db-replicas:
|
run-db-replicas:
|
||||||
@echo "Starting with replicas. Hang in there..."
|
@echo "Starting with replicas. Hang in there..."
|
||||||
@docker-compose up -d postgres-replica-1 postgres-replica-2
|
@docker compose up -d postgres-replica-1 postgres-replica-2
|
||||||
@docker exec -it cs-repro-mattermost mmctl config patch /mattermost/config/replicaConfig.json --local
|
@docker exec -it cs-repro-mattermost mmctl config patch /mattermost/config/replicaConfig.json --local
|
||||||
@echo "Should be up and running. Go crazy."
|
@echo "Should be up and running. Go crazy."
|
||||||
|
|
||||||
@@ -49,19 +49,19 @@ run-db-replicas:
|
|||||||
run-mm-replicas:
|
run-mm-replicas:
|
||||||
@echo "Starting Mattermost replicas. Hang in there..."
|
@echo "Starting Mattermost replicas. Hang in there..."
|
||||||
@docker exec -it cs-repro-mattermost mmctl config set ClusterSettings.Enable true --local
|
@docker exec -it cs-repro-mattermost mmctl config set ClusterSettings.Enable true --local
|
||||||
@docker-compose down mattermost
|
@docker compose down mattermost
|
||||||
@cp ./files/mattermost/defaultConfig.json ./volumes/mattermost_2/config
|
@cp ./files/mattermost/defaultConfig.json ./volumes/mattermost_2/config
|
||||||
@cp ./files/mattermost/replicaConfig.json ./volumes/mattermost_2/config
|
@cp ./files/mattermost/replicaConfig.json ./volumes/mattermost_2/config
|
||||||
@cp ./files/mattermost/rtcdConfig.json ./volumes/mattermost_2/config
|
@cp ./files/mattermost/rtcdConfig.json ./volumes/mattermost_2/config
|
||||||
@cp ./files/mattermost/samlCert.crt ./volumes/mattermost_2/config
|
@cp ./files/mattermost/samlCert.crt ./volumes/mattermost_2/config
|
||||||
@cp ./license.mattermost ./volumes/mattermost/mattermost_2/license.mattermost-enterprise
|
@cp ./license.mattermost ./volumes/mattermost/mattermost_2/license.mattermost-enterprise
|
||||||
@docker-compose up -d mattermost mattermost-2
|
@docker compose up -d mattermost mattermost-2
|
||||||
@docker exec -it -u root cs-repro-mattermost-2 /bin/bash update-ca-certificates
|
@docker exec -it -u root cs-repro-mattermost-2 /bin/bash update-ca-certificates
|
||||||
@echo "Should be up and running. Go crazy."
|
@echo "Should be up and running. Go crazy."
|
||||||
|
|
||||||
run-rtcd:
|
run-rtcd:
|
||||||
@echo "Starting RTCD..."
|
@echo "Starting RTCD..."
|
||||||
@docker-compose up -d mattermost-rtcd
|
@docker compose up -d mattermost-rtcd
|
||||||
@docker exec -it cs-repro-mattermost mmctl config patch /mattermost/config/rtcdConfig.json --local
|
@docker exec -it cs-repro-mattermost mmctl config patch /mattermost/config/rtcdConfig.json --local
|
||||||
@docker exec -it cs-repro-mattermost mmctl plugin disable com.mattermost.calls --local
|
@docker exec -it cs-repro-mattermost mmctl plugin disable com.mattermost.calls --local
|
||||||
@docker exec -it cs-repro-mattermost mmctl plugin enable com.mattermost.calls --local
|
@docker exec -it cs-repro-mattermost mmctl plugin enable com.mattermost.calls --local
|
||||||
@@ -70,19 +70,19 @@ run-all: run run-db-replicas run-mm-replicas
|
|||||||
|
|
||||||
start:
|
start:
|
||||||
@echo "Starting the existing deployment..."
|
@echo "Starting the existing deployment..."
|
||||||
@docker-compose start
|
@docker compose start
|
||||||
|
|
||||||
stop:
|
stop:
|
||||||
@echo "Stopping..."
|
@echo "Stopping..."
|
||||||
@docker-compose stop
|
@docker compose stop
|
||||||
@echo "Done"
|
@echo "Done"
|
||||||
|
|
||||||
stop-rtcd:
|
stop-rtcd:
|
||||||
@echo "Stopping RTCD..."
|
@echo "Stopping RTCD..."
|
||||||
@docker-compose stop mattermost-rtcd
|
@docker compose stop mattermost-rtcd
|
||||||
|
|
||||||
restart:
|
restart:
|
||||||
@docker-compose restart
|
@docker compose restart
|
||||||
@make check-mattermost
|
@make check-mattermost
|
||||||
|
|
||||||
restart-mattermost:
|
restart-mattermost:
|
||||||
@@ -112,12 +112,12 @@ downgrade:
|
|||||||
@docker stop cs-repro-postgres || true && docker rm cs-repro-postgres || true
|
@docker stop cs-repro-postgres || true && docker rm cs-repro-postgres || true
|
||||||
rm -rf ./volumes/mattermost
|
rm -rf ./volumes/mattermost
|
||||||
rm -rf ./volumes/db
|
rm -rf ./volumes/db
|
||||||
docker-compose up -d
|
docker compose up -d
|
||||||
@make setup-mattermost
|
@make setup-mattermost
|
||||||
|
|
||||||
delete-dockerfiles:
|
delete-dockerfiles:
|
||||||
@echo "Deleting data..."
|
@echo "Deleting data..."
|
||||||
@docker-compose rm
|
@docker compose rm
|
||||||
@rm -rf ./volumes
|
@rm -rf ./volumes
|
||||||
@rm -rf ./files/postgres/replica/replica_*
|
@rm -rf ./files/postgres/replica/replica_*
|
||||||
@echo "Done"
|
@echo "Done"
|
||||||
@@ -126,10 +126,10 @@ delete-data: stop delete-dockerfiles
|
|||||||
|
|
||||||
nuke:
|
nuke:
|
||||||
@echo "Nuking Docker..."
|
@echo "Nuking Docker..."
|
||||||
@docker-compose down --volumes --remove-orphans
|
@docker compose down --volumes --remove-orphans
|
||||||
@make delete-data
|
@make delete-data
|
||||||
|
|
||||||
nuke-rmi:
|
nuke-rmi:
|
||||||
@echo "Nuking Docker with images..."
|
@echo "Nuking Docker with images..."
|
||||||
@docker-compose down --rmi all --volumes --remove-orphans
|
@docker compose down --rmi all --volumes --remove-orphans
|
||||||
@make delete-data
|
@make delete-data
|
||||||
|
|||||||
Reference in New Issue
Block a user