forked from sjourdan/toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (14 loc) · 648 Bytes
/
Copy pathMakefile
File metadata and controls
19 lines (14 loc) · 648 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.DEFAULT_GOAL := help
DOCKER_USER=trentcodecov
PRODUCT=toolbox
build: ## Build container with cache
docker build -t $(DOCKER_USER)/$(PRODUCT) .
build-nocache: ## Build container without cache
docker build --no-cache -t $(DOCKER_USER)/$(PRODUCT) .
lint: ## Lint Docker
docker run --rm -it --privileged -v $$PWD:/root/ projectatomic/dockerfile-lint dockerfile_lint
docker run --rm -i sjourdan/hadolint < Dockerfile
tests: ## Launch tests
docker run --rm $(DOCKER_USER)/$(PRODUCT) /tmp/tests.sh
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'