diff --git a/Makefile b/Makefile index 0925bde1..50044823 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ # start: Executables -COMPOSER = composer -PHP = php +DOCKER_COMPOSE = docker compose +COMPOSER = composer +PHP = php # end: Executables # start: Tools @@ -115,6 +116,19 @@ coverage: XDEBUG_MODE=coverage coverage: PHPUNIT_OPTIONS=--coverage-html $(COVERAGE_DIR) coverage: test ## Build Code Coverage Report +##---- Docker ------------------------------------------------------------------------- +.PHONY: docker-up +docker-up: ## Start containers + @$(DOCKER_COMPOSE) up --detach --remove-orphans + +.PHONY: docker-down +docker-down: ## Shutdown containers + @$(DOCKER_COMPOSE) down --remove-orphans + +.PHONY: docker-logs +docker-logs: ## Show live logs + @$(DOCKER_COMPOSE) logs --tail=0 --follow + ##---- Code Quality ------------------------------------------------------------------- .PHONY: lint lint: ## Lint PHP files diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 00000000..b94bf5e4 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,16 @@ +#### +# Various Services used for integration testing +#### +services: + aws: + image: localstack/localstack + ports: + - 4566:4566 + memcached: + image: memcached + ports: + - 11211:11211 + redis: + image: redis + ports: + - 6379:6379