-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (38 loc) · 1.1 KB
/
Makefile
File metadata and controls
48 lines (38 loc) · 1.1 KB
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
.PHONY: build-test
build-test:
docker compose -f DocumentsApi.Tests/compose.yml build
.PHONY: serve-test
serve-test:
make build-test && make start-test
.PHONY: start-test
start-test:
docker compose -f DocumentsApi.Tests/compose.yml stop
docker compose -f DocumentsApi.Tests/compose.yml run --rm test
docker compose -f DocumentsApi.Tests/compose.yml stop
.PHONY: build-local
build-local:
docker compose -f DocumentsApi/compose.yml build
.PHONY: serve-local
serve-local:
make build-local && make start-local
.PHONY: start-local
start-local:
docker compose -f DocumentsApi/compose.yml stop
docker compose -f DocumentsApi/compose.yml up -d
.PHONY: stop-local
stop-local:
docker compose -f DocumentsApi/compose.yml stop
.PHONY: shell
shell:
docker compose run documents-api bash
.PHONY: lint
lint:
-dotnet tool install -g dotnet-format
dotnet tool update -g dotnet-format
dotnet format
.PHONY: restart-db
restart-db:
docker stop $$(docker ps -q --filter ancestor=test-database -a)
-docker rm $$(docker ps -q --filter ancestor=test-database -a)
docker rmi test-database
docker compose up -d test-database