forked from udacity/SFND_Lidar_Obstacle_Detection
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (37 loc) · 1012 Bytes
/
Makefile
File metadata and controls
42 lines (37 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
VERSION := 0.0.1
IMAGE := pcl-sensor-fusion
CONTAINER := ${IMAGE}:${VERSION}
XSOCK := /tmp/.X11-unix
.PHONY: help
help: ## Display the help message
@grep -hE '^\S+:.*##' $(MAKEFILE_LIST) | sed -e 's/:[[:blank:]]*\(##\)[[:blank:]]*/\1/' | column -s '##' -t
.PHONY: version
version: ## Display the version
@echo $(VERSION)
# x11-unix network security forwarding required
# for forwarding the GUI Applications
.PHONY: dev
dev: ## runs the env for open3d in the container
@xhost +local:root
@docker run --rm -it \
--privileged \
--env="DISPLAY" \
--env="QT_X11_NO_MITSHM=1" \
--env="TERM=xterm-256color" \
--volume $(PWD):/workspace/ \
--volume $(XSOCK):$(XSOCK) \
--name $(IMAGE) \
$(CONTAINER) \
/bin/bash
@xhost -local:root
.PHONY: shell
shell: ## attaches a shell to a currently running container
@docker exec -ti \
$(IMAGE) \
/bin/bash
.PHONY: build
build: ## Builds the container image
@DOCKER_BUILDKIT=1 docker build \
--progress=plain \
--tag $(CONTAINER) \
.