File tree 3 files changed +11
-13
lines changed
3 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -210,10 +210,10 @@ angular:
210
210
## Development
211
211
212
212
Check how to [ install the driver from source] ( #installing-from-source ) ,
213
- or use the [ ` Dockerfile ` ] ( Dockerfile ) to get setup a reproducible dev environment:
213
+ or use ` docker compose ` to get a more reproducible dev environment:
214
214
215
215
``` sh
216
- docker build -t ros2-naoqi-driver .
216
+ ROS_DISTRO=iron docker compose up dev --build
217
217
```
218
218
219
219
> To get all logs in live and build debuggable binaries,
Original file line number Diff line number Diff line change 1
- # Docker Compose file for TurtleBot3 Behavior Examples
1
+ # Docker Compose file for developer containers
2
2
#
3
3
# Usage:
4
4
#
5
- # To build the images:
6
- # docker compose build
7
- #
8
- # To start up a specific service by name:
9
- # docker compose up <service_name>
5
+ # ROS_DISTRO=<distro> docker compose up dev --build
10
6
#
11
7
# To open an interactive shell to a running container:
12
- # docker exec -it <container_name> bash
8
+ # docker exec -it naoqi_driver-dev-1 bash
13
9
14
10
version : " 3.9"
15
11
services :
16
- # Developer container
17
12
dev :
18
- image : ros2- naoqi-driver:dev
13
+ image : naoqi-driver:dev-$ROS_DISTRO
19
14
build :
20
15
context : .
21
16
dockerfile : docker/Dockerfile
22
17
target : dev
18
+ args :
19
+ - ROS_DISTRO=$ROS_DISTRO
23
20
24
21
# Interactive shell
25
22
stdin_open : true
26
23
tty : true
24
+
27
25
# Networking and IPC for ROS 2
28
26
network_mode : host
29
27
ipc : host
30
28
volumes :
31
29
# Mount the source code
32
- - .:/ws/src/naoqi_driver2 :rw
30
+ - .:/ws/src/naoqi_driver :rw
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ SHELL ["/bin/bash", "-c"]
6
6
7
7
# Create Colcon workspace with the project and its deps
8
8
ENV WS=/ws
9
- ENV PROJ_SRC=${WS}/src/naoqi_driver2
9
+ ENV PROJ_SRC=${WS}/src/naoqi_driver
10
10
COPY . $PROJ_SRC
11
11
WORKDIR $WS/src
12
12
RUN apt install -y git python3-vcstool
You can’t perform that action at this time.
0 commit comments