-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
56 lines (41 loc) · 1.28 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
include testing.env
export $(shell sed 's/=.*//' testing.env)
include local.env
export $(shell sed 's/=.*//' local.env)
include override.env
export $(shell sed 's/=.*//' override.env)
up: build
@echo "Booting anne-bonny services with docker-compose"
@docker-compose up -d
build:
@echo "Building anne-bonny services"
@docker-compose build --parallel
logs:
@echo "Tailing anne-bonny containers logs"
@docker-compose logs -f
down:
@echo "Shutting down all anne-bonny containers"
-@docker-compose down
reboot: down up logs
up-tool:
@echo "Booting anne-bonny tools with docker compose"
@docker-compose -f docker-compose.tool.yml up -d
# tool is a shortcut of up-tool so you can type make up tool logs :)
tool: up-tool
build-tool:
@echo "Building anne-bonny services"
@docker-compose -f docker-compose.tool.yml build --parallel
logs-tool:
@echo "Tailing anne-bonny containers logs"
@docker-compose -f docker-compose.tool.yml logs -f
down-tool:
@echo "Shutting down all anne-bonny containers"
-@docker-compose -f docker-compose.tool.yml down
release:
@echo "Firing new release helper"
@npx release-it
test-report:
@echo "Generating test report"
@go test -coverprofile=coverage.out ./video-streamer/... ./storage/azure/...
test-review: test-report
@go tool cover -html=coverage.out