Skip to content

Commit

Permalink
setting up docker stuff so that I can test things
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaEstes committed Oct 23, 2024
1 parent 74cc49e commit 4b0827f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# start: Executables
COMPOSER = composer
PHP = php
DOCKER_COMPOSE = docker compose
COMPOSER = composer
PHP = php
# end: Executables

# start: Tools
Expand Down Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4b0827f

Please sign in to comment.