2017-03-19 16:24:52 +01:00
|
|
|
TREE?=HEAD
|
|
|
|
ARTIFACTS=`pwd`/artifacts
|
|
|
|
REVISION?=1
|
|
|
|
|
|
|
|
build:
|
|
|
|
mkdir -p $(ARTIFACTS)
|
2017-10-23 00:05:29 +02:00
|
|
|
docker build -t alpine-pandoc .
|
2017-03-19 16:24:52 +01:00
|
|
|
docker run --env TREE=$(TREE) --env REVISION=$(REVISION) \
|
2017-10-23 00:05:29 +02:00
|
|
|
-v $(ARTIFACTS):/artifacts alpine-pandoc
|
2017-03-19 16:24:52 +01:00
|
|
|
|
2017-09-20 01:17:06 +02:00
|
|
|
interact:
|
|
|
|
docker run --env TREE=$(TREE) --env REVISION=$(REVISION) \
|
2017-10-23 00:05:29 +02:00
|
|
|
-v $(ARTIFACTS):/artifacts -it alpine-pandoc bash
|
2017-09-20 01:17:06 +02:00
|
|
|
|
2017-03-19 16:24:52 +01:00
|
|
|
setup:
|
2017-10-23 00:05:29 +02:00
|
|
|
docker pull alpine:edge
|
2017-03-19 16:24:52 +01:00
|
|
|
|
2017-09-20 01:17:06 +02:00
|
|
|
.PHONY: build setup interact
|