docker-compose-env-var-test #1
14
README.md
14
README.md
|
@ -81,6 +81,20 @@ cd services-xbee_net
|
|||
- 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:
|
||||
|
||||
- Router mode: `sh ./run-single.sh --subnet=7.7.7 --serial-speed=230400 --port=/dev/ttyUSB0 --interface-type=router`
|
||||
|
|
Loading…
Reference in New Issue