-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
54 lines (38 loc) · 835 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
project_name = ftso-data-sources
image_name = ftso-data-sources:latest
SRC_DIR=.
build-dev:
go build -o build/main $(SRC_DIR)/main.go
run: build-dev
./build/main
watch:
ENV=development air -c air.conf
watch-prod:
ENV=production air -c air.conf
run-local:
ENV=development go run $(SRC_DIR)/main.go
requirements:
go mod tidy
clean-packages:
go clean -modcache
up:
make up-silent
make shell
build:
docker compose build
build-no-cache:
docker compose build --no-cache
up-silent:
make delete-container-if-exist
docker compose up -d
up-silent-prefork:
make delete-container-if-exist
docker compose up -d
delete-container-if-exist:
docker stop $(project_name) || true && docker rm $(project_name) || true
shell:
docker exec -it $(project_name) /bin/sh
stop:
docker compose down
start:
docker compose up -d