forked from webmapper/amaps
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Amsterdam/OT-369-prepare-for-deployment
OT-369: Prepare for Deployment
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters