Execute service as distributed nodes #96

Merged
joao.dubas merged 11 commits from jpd-multiple-local-nodes into main 2024-09-22 18:56:28 +00:00
2 changed files with 6 additions and 0 deletions
Showing only changes of commit ce214c8593 - Show all commits

View File

@ -51,6 +51,10 @@ compose_database_setup: compose_database_create compose_database_migrate ## cre
compose_ps: ## status of containers
@$(COMPOSE) ps
.PHONY: compose_remote
compose_remote: ## connect to remote node
@$(COMPOSE) exec app ./priv/docker/service/docker-remote.sh
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
iex --name ex_trainer_remote@127.0.0.1 --hidden --cookie local-cookie --remsh ${HOSTNAME}@$(hostname -i | cut -d ' ' -f1)