Looking to start playing around and creating some components for Home Assistant. I’ve currently got HASS running via a docker image on my Synology NAS.
Just wondering if there is a Docker image for development? That installs all the git hooks, test suites etc that I can run my own HASS fork from.
I like the model of basing the dev container off the production container as it leaves the production one clean. There are a few drawbacks to this approach including not capturing dependancy changes, so I recommend periodically rebuilding both containers during development.
Thanks for sharing your development setup, has come in handy to set up mine.
I also wanted to share how you can quickly run individual tests with the development docker image, so people new to tox are quickly up and running without having to run everything.
Execute the docker image but with the bash command instead.
docker run -p 8123:8123 -v $(pwd):/usr/src/app jacobtomlinson/home-assistant-dev:dev /bin/bash
Then you can run the individual tests for lets say the ddwrt device tracker