-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
115 lines (85 loc) · 3.42 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# ----------------------------------------------------------------------
# Robocup@Home ROS Noetic Docker Development
# ----------------------------------------------------------------------
#: Builds a Docker image with the corresponding Dockerfile file
# ----------------------------BUILD------------------------------------
# ---------Manipulation----------
# No GPU
manipulation.build:
@./docker/scripts/build.bash --area=manipulation
# CUDA 11.8 x86_64
manipulation.build.cuda:
@./docker/scripts/build.bash --area=manipulation --use-cuda
# Jetson devices
manipulation.build.jetson:
@./docker/scripts/build.bash --area=manipulation --jetson-l4t=35.4.1
# Manipulation GPU + ZED + OakD
manipulation.build.full:
@./docker/scripts/build.bash --area=manipulation-full --use-cuda
zed.build:
@./docker/scripts/build.bash --area=zed --use-cuda
# ----------------------------CREATE------------------------------------
manipulation.create:
@./docker/scripts/run.bash --area=manipulation --volumes=$(volumes) --name=$(name)
manipulation.create.cuda:
@./docker/scripts/run.bash --area=manipulation --use-cuda --volumes=$(volumes) --name=$(name)
manipulation.create.full:
@./docker/scripts/run.bash --area=manipulation-full --use-cuda --volumes=$(volumes) --name=$(name)
# For jetpack version 35.4.1, jetson images are special in the sense that they are specific to the jetpack version
manipulation.create.jetson:
@./docker/scripts/run.bash --area=manipulation --jetson-l4t=35.4.1 --volumes=$(volumes) --name=$(name)
zed.create:
@./docker/scripts/run.bash --area=zed --use-cuda --volumes=$(volumes) --name=$(name)
# ----------------------------START------------------------------------
# Start containers
manipulation.up:
@(if [ ! -z ${DISPLAY} ]; then xhost +; fi)
@docker start home-manipulation
manipulation.up.full:
@(if [ ! -z ${DISPLAY} ]; then xhost +; fi)
@docker start home-manipulation-full
zed.up:
@(if [ ! -z ${DISPLAY} ]; then xhost +; fi)
@docker start home-zed
# ----------------------------STOP------------------------------------
# Stop containers
manipulation.down:
@docker stop home-manipulation
manipulation.down.full:
@docker stop home-manipulation-full
zed.down:
@docker stop home-zed
# ----------------------------RESTART------------------------------------
# Restart containers
manipulation.restart:
@docker restart home-manipulation
zed.restart:
@docker restart home-zed
# ----------------------------LOGS------------------------------------
# Logs of the container
manipulation.logs:
@docker logs --tail 50 home-manipulation
# ----------------------------SHELL------------------------------------
# Fires up a bash session inside the container
manipulation.shell:
@docker exec -it --user $(shell id -u):$(shell id -g) home-manipulation bash
manipulation.shell.full:
@docker exec -it --user $(shell id -u):$(shell id -g) home-manipulation-full bash
zed.shell:
@docker exec -it --user $(shell id -u):$(shell id -g) home-zed bash
# ----------------------------REMOVE------------------------------------
# Remove container
manipulation.remove:
@docker container rm home-manipulation
manipulation.remove.full:
@docker container rm home-manipulation-full
zed.remove:
@docker container rm home-zed
# ----------------------------------------------------------------------
# General Docker Utilities
#: Show a list of images.
list-images:
@docker image ls
#: Show a list of containers.
list-containers:
@docker container ls -as