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

IMG := autonomic/autonomic.zone
NAME := autonomic-zone-testing
PORT := 4000
TAG := testing
build:
@docker build -t $(IMG):$(TAG) .
.PHONY: build
stop:
@docker stop $(NAME) && docker rm $(NAME) --force
.PHONY: stop
serve: build
@docker run \
--name $(NAME) \
-e JEKYLL_PORT=$(PORT) \
-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