forked from webmapper/amaps
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
36 lines (25 loc) · 958 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
32
33
34
35
# 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: help pip-tools install requirements update test init
UID:=$(shell id --user)
GID:=$(shell id --group)
dc = docker compose
run = $(dc) run --rm -u ${UID}:${GID}
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 docker image to registry
$(dc) push
push_semver:
VERSION=$${VERSION} $(MAKE) push
VERSION=$${VERSION%\.*} $(MAKE) push
VERSION=$${VERSION%%\.*} $(MAKE) push
clean: ## Clean docker stuff
$(dc) down -v --remove-orphans
app:
$(dc) up --build serve
shell:
$(run) serve sh