-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
71 lines (62 loc) · 2.02 KB
/
Makefile
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
.PHONY: build run-root run attach run-nvidia
XAUTH:=/tmp/.docker.xauth
TF_VERSION:=1.15.2
ROS_VERSION:=melodic
UBUNTU_VERSION:=bionic
DOCKER_NAME:=voxgraph:$(ROS_VERSION)-tf$(TF_VERSION)
ROS_PACKAGE:=perception
build:
@docker build -t ros-tensorflow:$(ROS_VERSION)-tf$(TF_VERSION) ros_tensorflow_$(ROS_VERSION)_tf$(TF_VERSION)/.
run-root: build
nvidia-docker run -it --name $(DOCKER_NAME) --rm \
--env="DISPLAY=$DISPLAY" \
--env="QT_X11_NO_MITSHM=1" \
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
-e XAUTHORITY=$(XAUTH) \
--volume="$(XAUTH):$(XAUTH)" \
--runtime=nvidia \
-e HOME=${HOME} \
# -v "${HOME}:${HOME}/" \
-v /etc/localtime:/etc/localtime \
--security-opt seccomp=unconfined \
--net=host \
--privileged \
$(DOCKER_NAME)
run:
#make build
touch $(XAUTH)
xauth nlist ${DISPLAY} | sed -e 's/^..../ffff/' | xauth -f $(XAUTH) nmerge -
nvidia-docker run -it --gpus all --name voxgraph --rm \
--env="DISPLAY=${DISPLAY}" \
--env="QT_X11_NO_MITSHM=1" \
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
-e XAUTHORITY=$(XAUTH) \
--volume="$(XAUTH):$(XAUTH)" \
-e HOME=${HOME} \
-u ${shell whoami} \
-v /etc/localtime:/etc/localtime \
-v ${HOME}/Workspace/mrslam/multi_robot_coordination_ws:${HOME}/Workspace/mrslam/multi_robot_coordination_ws \
--security-opt seccomp=unconfined \
--net=host \
--privileged \
$(DOCKER_NAME)-perception
run-nvidia:
make build
#touch $(XAUTH)
#xauth nlist ${DISPLAY} | sed -e 's/^..../ffff/' | xauth -f $(XAUTH) nmerge -
nvidia-docker run --gpus all -it --name $(DOCKER_NAME) --rm \
--env="DISPLAY=${DISPLAY}" \
--env="QT_X11_NO_MITSHM=1" \
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
-e XAUTHORITY=$(XAUTH) \
--volume="$(XAUTH):$(XAUTH)" \
--runtime=nvidia \
-e HOME=${HOME} \
-u ${shell whoami} \
-v /etc/localtime:/etc/localtime \
--security-opt seccomp=unconfined \
--net=host \
--privileged \
$(DOCKER_NAME)
attach:
docker exec -it $(DOCKER_NAME) /bin/bash