From 2566b88cbad6dcc1d962973d8e187da071398d7a Mon Sep 17 00:00:00 2001 From: Manfred Touron Date: Sun, 15 Sep 2019 17:36:33 +0200 Subject: [PATCH] feat: add Makefile in pathwar/level-example --- level/example/hello-world/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 level/example/hello-world/Makefile diff --git a/level/example/hello-world/Makefile b/level/example/hello-world/Makefile new file mode 100644 index 000000000..2cd83ef41 --- /dev/null +++ b/level/example/hello-world/Makefile @@ -0,0 +1,16 @@ +.PHONY: build +build: + docker build -t pathwar/level-example . + +.PHONY: clean +clean: + pathwar.land hypervisor prune || true + docker rm -f pathwar-level-example || true + +.PHONY: run-with-pathwar +run-with-pathwar: build + pathwar.land hypervisor run --web-port=8899 pathwar/level-example + +.PHONY: run-with-pathwar +run-with-docker: build + docker run --name=pathwar-level-example -it --rm -p 8899:80 pathwar/level-example