Right now add-ons will work with images that are stored on Docker Hub (using
image from add-on config). Without
image inside local add-ons repository it to be built on the device.
You can build an try the addon on your developer machine also. Move all addon stuff into a temp folder. Replace in the Dockerfile
Add also a
LABEL io.hass.version="xy" into your dockerfile.
docker to build the test addon:
docker build -t local/my-test-addon .
Create a new folder for data and add a test options.json file. After that you can run your add-on with:
docker run --rm -v /tmp/my_test_data:/data -p PORT_STUFF_IF_NEEDED local/my-test-addon
All stdout and stderr is redirected to the Docker logs. The logs can be fetched from the add-on page inside the Hass.io panel in Home Assistant.