forked from sqlfluff/sqlfluff
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (18 loc) · 778 Bytes
/
Makefile
File metadata and controls
26 lines (18 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.PHONY: help build clean fresh shell start stop
.DEFAULT_GOAL := help
help: ## Show this available targets
@grep -E '^[/a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
build: ## Build the development container
docker-compose build development
clean: ## Clean up all containers and images
docker system prune -f
docker-compose stop
docker rmi `docker images -a -q`
fresh: ## Build the development container from scratch
docker-compose build --no-cache development
shell: ## Start a bash session in the development container
docker-compose exec development bash
start: ## Start the development container
docker-compose up -d
stop: ## Stop the development container
docker-compose stop