created a docker file to aid dev setup (#99)

* created a docker file to aid dev setup

* fixed review comments in README and Dockerfile

* review comments to simplify the docker run command
This commit is contained in:
TheSmokingGnu
2017-10-13 22:27:05 +01:00
committed by Teemu R
parent b80923061f
commit 95b743f11d
2 changed files with 62 additions and 0 deletions

View File

@@ -210,4 +210,16 @@ Hue is given in degrees (0-360) and saturation and value in percentage.
print(bulb.hsv)
if bulb.is_color:
bulb.hsv = (180, 100, 100) # set to cyan
```
## Development Setup
### Docker
The following assumes you have a working installation of Docker.
Set up the environment and run the tests on demand.
```shell
docker build . -t pyhs100 && docker run -v $(PWD)/pyHS100/tests:/opt/pyHS100/pyHS100/tests pyhs100 pytest
```