portainer/Makefile

31 lines
453 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
install:
npm install -g grunt-cli
2014-06-10 08:17:23 +00:00
build:
grunt build
2014-06-10 08:17:23 +00:00
docker build --rm -t dockerui .
build-release:
grunt release
docker build --rm -t dockerui .
test:
grunt
2014-06-10 08:17:23 +00:00
run:
-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)