Added docker run cmd to README.md for intergrating with TX2

This commit is contained in:
Emran Billah 2024-09-04 14:43:25 -03:00
parent 23b30416b5
commit 96c6f641b8
1 changed files with 14 additions and 0 deletions

View File

@ -81,6 +81,20 @@ cd services-xbee_net
- XBNET_PROTO=tap # ["tap" | "tun"] - XBNET_PROTO=tap # ["tap" | "tun"]
``` ```
- This can also be run using the `docker run` cmd shown below.
```bash
docker run -d --name xbnet_node \
--privileged \
-e XBEE_INDEX=1 \
-e XBEE_BAUDRATE=230400 \
-e XBEE_PORT=/dev/ttyUSB0 \
-e XBNET_BASE_SUBNET=2.2.2 \
-e XBNET_INTERFACE_TYPE=router \
-e XBNET_PROTO=tap \
xbnet_node bash /entrypoint.sh
```
#### 3. To run a single xbnet node in `DEVELOPEMENT` mode, use the following cmd: #### 3. To run a single xbnet node in `DEVELOPEMENT` mode, use the following cmd:
- Router mode: `sh ./run-single.sh --subnet=7.7.7 --serial-speed=230400 --port=/dev/ttyUSB0 --interface-type=router` - Router mode: `sh ./run-single.sh --subnet=7.7.7 --serial-speed=230400 --port=/dev/ttyUSB0 --interface-type=router`