forked from martimarkov/riju
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (22 loc) · 890 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
UID := $(shell id -u)
.PHONY: help
help: ## Show this message
@echo "usage:" >&2
@grep -h "[#]# " $(MAKEFILE_LIST) | \
sed 's/^/ make /' | \
sed 's/:[^#]*[#]# /|/' | \
column -t -s'|' >&2
.PHONY: image-dev
image-dev: ## Build Docker image for development
scripts/docker.bash build . -f Dockerfile.dev -t riju --build-arg "UID=$(UID)"
.PHONY: image-prod
image-prod: ## Build Docker image for production
scripts/docker.bash build . -f Dockerfile.prod -t riju:prod --build-arg "UID=$(UID)"
.PHONY: docker
docker: image-dev docker-nobuild ## Run shell with source code and deps inside Docker
.PHONY: docker
docker-nobuild: ## Same as 'make docker', but don't rebuild image
scripts/docker.bash run -it --rm -v "$(PWD):/home/docker/src" -p 6119:6119 -p 6120:6120 -h riju riju bash
.PHONY: deploy
deploy: ## Deploy current master from GitHub to production
scripts/deploy.bash