This repository has been archived on 2023-02-03. You can view files and clone it, but cannot push or open issues or pull requests.
autonomic.zone/Makefile

27 lines
531 B
Makefile
Raw Normal View History

IMG := autonomic/autonomic.zone
NAME := autonomic-zone-testing
PORT := 4000
TAG := testing
2020-04-06 11:23:24 +00:00
build:
@docker build -t $(IMG):$(TAG) .
.PHONY: build
stop:
@docker stop $(NAME) && docker rm $(NAME) --force
.PHONY: stop
serve: build
2020-04-06 11:23:24 +00:00
@docker run \
--name $(NAME) \
-e JEKYLL_PORT=$(PORT) \
2020-04-06 11:23:24 +00:00
-e JEKYLL_HOST=0.0.0.0 \
-e JEKYLL_CONFIG=_config_dev.yml \
-e JEKYLL_ENV=development \
-v $$(pwd):/usr/src/app \
-p $(PORT):$(PORT) \
-d \
$(IMG):$(TAG) && \
echo "Site available at http://localhost:4000"
.PHONY: serve