generated from Amsterdam/frontend-react-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (29 loc) · 1.21 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
38
39
40
41
# This Makefile is based on the Makefile defined in the Python Best Practices repository:
# https://git.datapunt.amsterdam.nl/Datapunt/python-best-practices/blob/master/dependency_management/
#
# VERSION = 2020.01.29
.PHONY: app
dc = docker compose
run = $(dc) run --rm
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
build: ## Build docker image
$(dc) build
push: build ## Push prod image to Amsterdam registry
$(dc) push
app: ## Run app
$(run) --service-ports dev
dev: ## Run the development app
$(run) --service-ports dev
test: build ## Execute tests
$(run) test $(ARGS)
clean: ## Clean docker stuff
$(dc) down -v --remove-orphans
trivy: ## Detect image vulnerabilities
trivy image --ignore-unfixed nginxinc/nginx-unprivileged:mainline-alpine-slim
push: ## Push image to docker hub
$(dc) push
csv-update:
$(run) csv-update $(ARGS)
requirements: ## Upgrade dependencies
$(run) upgrade $(ARGS)