2017-01-02 21:04:09 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Open a docker that can be used to debug/dev python-openzwave. Pass in a command line argument to build
|
2015-02-23 01:36:28 +00:00
|
|
|
|
2015-09-17 07:35:26 +00:00
|
|
|
cd "$(dirname "$0")/.."
|
2015-02-23 01:36:28 +00:00
|
|
|
|
|
|
|
if [ $# -gt 0 ]
|
|
|
|
then
|
|
|
|
docker build -t home-assistant-dev .
|
|
|
|
fi
|
|
|
|
|
|
|
|
docker run \
|
|
|
|
--device=/dev/ttyUSB0:/zwaveusbstick:rwm \
|
|
|
|
-v `pwd`:/usr/src/app \
|
2015-02-28 17:09:32 +00:00
|
|
|
-p 8123:8123 \
|
2015-02-23 01:36:28 +00:00
|
|
|
-t -i home-assistant-dev \
|
|
|
|
/bin/bash
|