2014-06-10 08:17:23 +00:00
|
|
|
.PHONY: build run
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
|
|
|
|
OPEN = $(shell which xdg-open || which open)
|
|
|
|
PORT ?= 9000
|
|
|
|
|
2015-01-14 06:25:25 +00:00
|
|
|
install:
|
|
|
|
npm install -g grunt-cli
|
2015-02-18 06:55:40 +00:00
|
|
|
npm install
|
2015-01-14 06:25:25 +00:00
|
|
|
|
2014-06-10 08:17:23 +00:00
|
|
|
build:
|
2015-01-03 22:49:28 +00:00
|
|
|
grunt build
|
2014-06-10 08:17:23 +00:00
|
|
|
docker build --rm -t dockerui .
|
|
|
|
|
2015-01-18 22:39:10 +00:00
|
|
|
build-release:
|
2015-02-18 06:55:40 +00:00
|
|
|
grunt build
|
2015-02-18 07:05:51 +00:00
|
|
|
docker run --rm -v $(shell pwd):/src centurylink/golang-builder
|
|
|
|
shasum dockerui > dockerui-checksum.txt
|
2015-01-18 22:39:10 +00:00
|
|
|
|
2015-01-14 06:25:25 +00:00
|
|
|
test:
|
|
|
|
grunt
|
|
|
|
|
2014-06-10 08:17:23 +00:00
|
|
|
run:
|
2014-11-03 03:21:59 +00:00
|
|
|
-docker stop dockerui
|
|
|
|
-docker rm dockerui
|
|
|
|
docker run -d -p $(PORT):9000 -v /var/run/docker.sock:/docker.sock --name dockerui dockerui -e /docker.sock
|
2014-06-10 08:17:23 +00:00
|
|
|
|
|
|
|
open:
|
|
|
|
$(OPEN) localhost:$(PORT)
|
|
|
|
|
|
|
|
|