1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

Add makefile targets: build, run, open

This commit is contained in:
Thomas B Homburg 2014-06-10 10:17:23 +02:00
parent 2ac1049ebf
commit 46e8cbc918

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)