-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
29 lines (26 loc) · 863 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
29
NAME=logspout-http
VERSION=$(shell cat VERSION)
dev:
rm -rf ./tmp
mkdir -p ./tmp/src
cp -r ./vendor/src tmp/
mkdir -p ./tmp/src/github.com/raychaser/logspout-http/http
cp -r ./modules.go ./tmp/src/github.com/raychaser/logspout-http
cp -r ./http/* ./tmp/src/github.com/raychaser/logspout-http/http
cp ./tmp/src/github.com/raychaser/logspout-http/modules.go ./tmp/src/github.com/gliderlabs/logspout
@docker build -f Dockerfile.dev -t $(NAME):dev .
@docker run --rm \
-e DEBUG=true \
-e STATS=true \
-e CRASH= \
-e LOGSPOUT=ignore \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(PWD):/go/src/github.com/raychaser/logspout-http \
-p 8000:80 \
-e ROUTE_URIS="$(ROUTE)" \
$(NAME):dev
build:
mkdir -p build
docker build -t $(NAME):$(VERSION) .
docker save $(NAME):$(VERSION) | gzip -9 > build/$(NAME)_$(VERSION).tgz
.PHONY: release