Skip to content

Commit

Permalink
Merge pull request #9 from Amsterdam/OT-369-prepare-for-deployment
Browse files Browse the repository at this point in the history
OT-369: Prepare for Deployment
  • Loading branch information
jjbeekman authored Mar 25, 2024
2 parents 8184852 + e9712ac commit dc8d09b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Makefile
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

1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ services:
context: .
ports:
- 8095:80
image: ${REGISTRY:-localhost:5001}/${REPOSITORY:-opdrachten/amaps}:${VERSION:-latest}

0 comments on commit dc8d09b

Please sign in to comment.