forked from konstellation-io/kre-runners
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (22 loc) · 925 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
.DEFAULT_GOAL := help
# AutoDoc
# -------------------------------------------------------------------------
.PHONY: help
help: ## This help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.DEFAULT_GOAL := help
.PHONY: build-py
build-py: ## Build Python runner docker image.
docker build -t konstellation/kre-py:latest kre-py
.PHONY: build-go
build-go: ## Build GoLang runner docker image.
docker build -t konstellation/kre-go:latest kre-go
.PHONY: build-entrypoint
build-entrypoint: ## Build Entrypoint docker image.
docker build -t konstellation/kre-entrypoint:latest kre-entrypoint
.PHONY: build
build: build-py build-go build-entrypoint ## Build all docker images.
echo "done"
.PHONY: protos
protos: ## Generate proto files
protoc -I=proto --go_out=kre-go --python_out=kre-py/src --python_out=kre-entrypoint/src proto/kre_nats_msg.proto