-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
54 lines (41 loc) · 1.24 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
# ----------------------------------------------------------------------
# Development Docker
# ----------------------------------------------------------------------
#: Builds a Docker image from the current Dockerfile file
ros.build:
@docker build -t ros:workshop -f Dockerfile .
#: Create Docker container
ros.create:
@./run_scripts/run.bash
ros.nvidia.create:
@./run_scripts/runNvidiaGpu.bash
ros.intel.create:
@./run_scripts/runIntelGpu.bash
#: Start the container in background
ros.up:
@xhost +
@docker start ros-workshop
#: Stop the container
ros.down:
@docker stop ros-workshop
#: Restarts the container
ros.restart:
@docker restart ros-workshop
#: Shows the logs of the ros-workshop service container
ros.logs:
@docker logs --tail 50 ros-workshop
#: Fires up a bash session inside the ros-workshop service container
ros.shell:
@docker exec -it ros-workshop bash
#: Remove ros-workshop container.
ros.remove: ros.down
@docker container rm ros-workshop
# ----------------------------------------------------------------------
# General Docker
# ----------------------------------------------------------------------
#: Show a list of containers.
list:
@docker container ls -a
#: Show a list of containers running.
listUp:
@docker ps