-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (28 loc) · 773 Bytes
/
Makefile
File metadata and controls
43 lines (28 loc) · 773 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
DOCKER_COMPOSE_FILE ?= compose.local.yml
.PHONY: build up start stop down logs ps restart prune
build:
docker compose -f $(DOCKER_COMPOSE_FILE) build
up:
docker compose -f $(DOCKER_COMPOSE_FILE) up -d
start:
docker compose -f $(DOCKER_COMPOSE_FILE) up -d --build
stop:
docker compose -f $(DOCKER_COMPOSE_FILE) stop
down:
docker compose -f $(DOCKER_COMPOSE_FILE) down
logs:
docker compose -f $(DOCKER_COMPOSE_FILE) logs -f
ps:
docker compose -f $(DOCKER_COMPOSE_FILE) ps
restart:
docker compose -f $(DOCKER_COMPOSE_FILE) restart
prune:
docker system prune -af --volumes
lint:
golangci-lint run --config .golangci.yml
govulncheck:
@go run golang.org/x/vuln/cmd/govulncheck ./...
setup:
@git config core.hooksPath .githooks
test:
go test ./... -v