mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
Add makefile targets: build, run, open
This commit is contained in:
parent
2ac1049ebf
commit
46e8cbc918
1 changed files with 17 additions and 0 deletions
17
Makefile
Normal file
17
Makefile
Normal 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)
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue