-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.windows
28 lines (24 loc) · 879 Bytes
/
Makefile.windows
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
SHELL=cmd.exe
API_APP_BINARY=apiApp
## up: starts all containers in the background without forcing build
up:
@echo Starting Docker images...
docker-compose up -d
@echo Docker images started!
## up_build: stops docker-compose (if running), builds all projects and starts docker compose
up_build: build_app
@echo Stopping docker images (if running...)
docker-compose down
@echo Building (when required) and starting docker images...
docker-compose up --build -d
@echo Docker images built and started!
## down: stop docker compose
down:
@echo Stopping docker compose...
docker-compose down
@echo Done!
## build_app: builds the app binary as a linux executable
build_broker:
@echo Building app binary...
chdir . && set GOOS=linux&& set GOARCH=amd64&& set CGO_ENABLED=0 && go build -o ${API_APP_BINARY} ./cmd/api
@echo Done!