mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Update addon_testing.markdown
This commit is contained in:
parent
2135711757
commit
cdafbad5e9
@ -15,13 +15,14 @@ Right now add-ons will work with images that are stored on Docker Hub (using `im
|
||||
|
||||
## {% linkable_title Local run %}
|
||||
|
||||
You can build an try the addon on your developer machine also. Move all addon stuff into a temp folder. Replace in the Dockerfile: `%%VERSION%%` with your version and `%%BASE_IMAGE%%` with:
|
||||
You can build an try the addon on your developer machine also. Move all addon stuff into a temp folder. Replace in the Dockerfile `%%BASE_IMAGE%%` with:
|
||||
|
||||
- armhf: `resin/armhf-alpine:3.5`
|
||||
- aarch64: `resin/aarch64-alpine:3.5`
|
||||
- amd64: `resin/amd64-alpine:3.5`
|
||||
- i386: `resin/i386-alpine:3.5`
|
||||
|
||||
Add also a `LABEL io.hass.version="xy"` into your dockerfile.
|
||||
Use `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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user