Files
weave-scope/examples/plugins/http-requests/Makefile
2016-04-12 17:22:39 +01:00

23 lines
488 B
Makefile

.PHONY: run clean
IMAGE=weavescope-http-requests-plugin
UPTODATE=.uptodate
run: $(UPTODATE)
docker run --rm -it \
--privileged --net=host \
-v /lib/modules:/lib/modules \
-v /usr/src:/usr/src \
-v /sys/kernel/debug/:/sys/kernel/debug/ \
-v /var/run/scope/plugins:/var/run/scope/plugins \
--name $(IMAGE) \
$(IMAGE)
$(UPTODATE): Dockerfile http-requests.py http-requests.c
docker build -t $(IMAGE) .
touch $@
clean:
- rm -rf $(UPTODATE)
- docker rmi $(IMAGE)