-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
23 lines (16 loc) · 863 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
GOGEN = go generate .
.PHONY: help deploy undeploy dist vuln
help: ## list available targets
@# Derived from Gomega's Makefile (github.com/onsi/gomega) under MIT License
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}'
deploy: ## deploy Packetflix service exposed on host port 5001
$(GOGEN)
scripts/docker-build.sh deployments/packetflix/Dockerfile \
-t packetflix
docker compose -p packetflix -f deployments/packetflix/docker-compose.yaml up
undeploy: ## remove any Packetflix service deployment
docker compose -p packetflix -f deployments/packetflix/docker-compose.yaml down
vuln: ## run go vulnerabilities check
@scripts/vuln.sh
dist: ## build multi-arch image (amd64, arm64) and push to local running registry on port 5999.
scripts/multiarch-builder.sh