summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Bütow <pbuetow@mimecast.com>2018-12-27 07:01:54 +0000
committerPaul Bütow <pbuetow@mimecast.com>2018-12-27 07:01:54 +0000
commitf30db3239fdb0c134b76ef75e780bf014b4a0342 (patch)
treec4c7e264bb53b9cab1568a117ee84285fb712314 /Makefile
parentcd5d869ef07d6b719dd09780145ea525ac437fc6 (diff)
move docker build volume to ./docker
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e3cc8e1..badf2b5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
KERNEL ?= $(shell uname -r)
DESTDIR=/opt/ioriot
+PWD=$(shell pwd)
all:
$(MAKE) -C systemtap
$(MAKE) -C ioriot
@@ -23,5 +24,5 @@ test:
dockerbuild:
sed s/KERNEL/$(KERNEL)/ Dockerfile.in > Dockerfile
docker build . -t ioriot:$(KERNEL)
- bash -c 'test ! -d /tmp/docker/opt/ && mkdir -p /tmp/docker/opt/; exit 0'
- docker run -v /tmp/docker/opt:/opt -v /tmp/docker/downloads:/ioriot/systemtap/downloads -e 'KERNEL=$(KERNEL)' -it ioriot:$(KERNEL) make all install
+ bash -c 'test ! -d $(PWD)/docker/opt/ && mkdir -p $(PWD)/docker/opt/; exit 0'
+ docker run -v $(PWD)/docker/opt:/opt -e 'KERNEL=$(KERNEL)' -it ioriot:$(KERNEL) make all install