-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (26 loc) · 1.02 KB
/
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
.PHONY: help build run
.PHONY: help build-api run-api
.PHONY: build-docker run-docker
# set default goal to help
.DEFAULT_GOAL := help
### * make help Print this help
help: Makefile
@sed -n 's/^###//p' $<
### * make build Build modelgen binary
build:
- go build .
### * make run run modelgen to generate concept app
run:build
- ./modelgen
### * make build-api build concept-api (concept) binary
build-api:run
- cd modelgen-concept/concept-api && go build .
### * make run-api run concept-api (concept) binary
run-api: build-api
- cd modelgen-concept/concept-api && ./concept-api
### * make build-docker Build modelgen docker-image (concept-api)
build-docker:build-api
- cd modelgen-concept/concept-api && docker build -t concept-api .
### * make run-docker run modelgen docker-image (concept-api)
run-docker:build-docker
- cd modelgen-concept/concept-api && docker run --rm -it -p 7070:7070 --env-file .env --network host concept-api