mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-05 19:21:46 +00:00
Squash of: * Include plugins in the report * show plugin list in the UI * moving metric and metadata templates into the probe reports * update js for prime -> priority * added retry to plugin handshake * added iowait plugin * review feedback * plugin documentation
20 lines
474 B
Makefile
20 lines
474 B
Makefile
.PHONY: run clean
|
|
|
|
EXE=iowait
|
|
IMAGE=weavescope-iowait-plugin
|
|
UPTODATE=.$(EXE).uptodate
|
|
|
|
run: $(UPTODATE)
|
|
docker run --rm -it --privileged -v /var/run/scope/plugins:/var/run/scope/plugins --name $(IMAGE) $(IMAGE) -hostname=$(shell hostname)
|
|
|
|
$(UPTODATE): $(EXE) Dockerfile
|
|
docker build -t $(IMAGE) .
|
|
touch $@
|
|
|
|
$(EXE): main.go
|
|
docker run --rm -v "$$PWD":/usr/src/$(EXE) -w /usr/src/$(EXE) golang:1.6 go build -v
|
|
|
|
clean:
|
|
- rm -rf $(UPTODATE) $(EXE)
|
|
- docker rmi $(IMAGE)
|