-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (31 loc) · 942 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
37
38
39
help:
@echo ''
@echo 'Usage: make [TARGET] [EXTRA_ARGUMENTS]'
@echo 'Targets:'
@echo 'make dev: make dev for development work'
@echo 'make staging: make staging for test work'
@echo 'make build: make build container'
@echo 'make production: docker production build'
@echo 'clean: clean for all clear docker images'
doc:
swag init
protobuf:
buf generate proto
update-proto:
buf mod update proto
dev:
cp .env.local .env
docker-compose -f docker-compose-dev.yml down
docker-compose -f docker-compose-dev.yml up
build:
docker-compose -f docker-compose-prod.yml build
docker-compose -f docker-compose-dev.yml down build
prod:
cp .env.prod .env
docker-compose -f docker-compose-staging.yml down
docker-compose -f docker-compose-staging.yml up
production:
docker-compose -f docker-compose-prod.yml up -d --build
clean:
docker-compose -f docker-compose-prod.yml down -v
docker-compose -f docker-compose-dev.yml down -v