Add makefile targets: build, run, open

pull/2/head
Thomas B Homburg 2014-06-10 10:17:23 +02:00
parent 2ac1049ebf
commit 46e8cbc918
1 changed files with 17 additions and 0 deletions

17
Makefile Normal file
View File

@ -0,0 +1,17 @@
.PHONY: build run
.SUFFIXES:
OPEN = $(shell which xdg-open || which open)
PORT ?= 9000
build:
docker build --rm -t dockerui .
run:
docker run -d -p $(PORT):9000 -v /var/run/docker.sock:/docker.sock dockerui -e /docker.sock
open:
$(OPEN) localhost:$(PORT)