portainer/Makefile

18 lines
265 B
Makefile
Raw Normal View History

2014-06-10 08:17:23 +00:00
.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)