-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (20 loc) · 875 Bytes
/
Makefile
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
27
28
29
30
31
32
c-ps: ## Status of the Web-SubSocket container
@docker-compose ps
c-top: ## Top status of the Web-SubSocket container
@docker-compose top
c-up: ## Start the Web-SubSocket container
@docker-compose up -d
c-down: ## Stop the Web-SubSocket container
@docker-compose down
c-logs: ## Tail logs of the Web-SubSocket container
@docker-compose logs -f
node: ## Start a Node.js CLI in the WebSub container
@docker-compose exec websub node --experimental-repl-await --harmony
node-shell: ## Start a Bash CLI in the WebSub container
@docker-compose exec websub bash
test: ## Run 'npm test' in the WebSub container
@docker-compose exec websub /bin/sh -c 'cd /app ; DEBUG= npm test'
.PHONY: help test
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.DEFAULT_GOAL := help