-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (28 loc) · 918 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
33
34
35
36
run: down
docker compose -f docker-compose.yml -f otel.docker-compose.yml up --remove-orphans --build
run_local: down
docker compose run -d --remove-orphans -p 5432:5432 postgres
air
test: down
docker compose -f ./docker-compose.yml -f ./test.docker-compose.yml up --abort-on-container-exit --remove-orphans --build
test_local: down
docker compose run -d --remove-orphans -p 5432:5432 postgres
go test -race ./...
./fuzz.sh
prod: down
docker compose -f ./docker-compose.yml -f otel.docker-compose.yml -f ./prod.docker-compose.yml up --remove-orphans --build
lint:
go vet
go fmt
golangci-lint run --fix ./...
clean: down kill
docker system prune -a -f
docker volume prune -a -f
docker network prune -f
docker system prune --volumes --all
kill:
docker compose down --remove-orphans
- docker ps -q | xargs -r docker kill
- docker stop `docker ps -qa`
down:
docker compose down --remove-orphans