-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·37 lines (26 loc) · 1.37 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
36
37
.SHELL := /usr/bin/bash
help:
@grep -E '^[a-zA-Z_-_\/]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
build: ## Build PolyDev
@docker buildx build --platform linux/amd64 -t ifunky/polydev:latest .
build/amplify: ## Build PolyDev
@docker build -t ifunky/polydev-amplify:latest -f amplify-hugo.dockerfile .
build/aws: ## Build AWS CLI and other related tools
@docker buildx build --platform linux/amd64 -t ifunky/polydev-aws:latest -f dockerfiles/aws/Dockerfile dockerfiles/aws/
build/aws/nocache: ## Build AWS CLI and other related tools (from scratch)
@docker buildx build --platform linux/amd64 --no-cache -t ifunky/polydev-aws:latest -f dockerfiles/aws/Dockerfile dockerfiles/aws/
build/nocache: ## Rebuild with no cache to force fresh rebuild
@docker build --no-cache -t ifunky/polydev:latest .
publish: ## Publish to Dockerhub
@docker push ifunky/polydev:latest
scan: ## Local docker security scan
#@trivy image --format template --template "@contrib/junit.tpl" -o junit-report.xml ifunky/polydev:latest
@trivy --exit-code 1 --no-progress ifunky/polydev:latest
polydev: ## Run PolyDev shell :-)
@ docker run -it --rm \
-v "$$PWD:/data" \
ifunky/polydev:latest
polydev/aws: ## Run PolyDev AWS shell :-)
@ docker run -it \
-v "$$PWD:/data" \
ifunky/polydev-aws:latest