diff --git a/atom.xml b/atom.xml index 065f17edc6..109f251964 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
All add-ons are based on Alpine Linux 3.5. Hass.io will automatically substitute the right base image based on the machine architecture. The Dockerfile is also required to have a VERSION environment variable which we will substitute with the version of the add-on.
+All add-ons are based on Alpine Linux 3.5. Hass.io will automatically substitute the right base image based on the machine architecture.
FROM %%BASE_IMAGE%%
-ENV VERSION %%VERSION%%
ENV LANG C.UTF-8
# Install requirements for add-on
@@ -101,6 +100,10 @@ RUN chmod a+x /run.sh
CMD [ "/run.sh" ]
If you don’t use local build on device or our build script, make sure that the Dockerfile have also a set of labels include:
+LABEL io.hass.version="VERSION" io.hass.type="addon" io.hass.arch="armhf|aarch64|i386|amd64"
+
+The config for an add-on is stored in config.json
.
{
diff --git a/hassio/addon_testing/index.html b/hassio/addon_testing/index.html
index 492b0310a0..9df7106cc7 100644
--- a/hassio/addon_testing/index.html
+++ b/hassio/addon_testing/index.html
@@ -70,14 +70,15 @@
The fastest way to develop add-ons is by adding them to your local add-on repository. To access your local add-on repository, install either the Samba add-on or SSH add-on.
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.
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
-Use docker
to build the test addon: docker build -t local/my-test-addon .
+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
Logs
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.
diff --git a/sitemap.xml b/sitemap.xml
index 047fa0cb16..2f3be0fcdd 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -3383,62 +3383,62 @@
https://home-assistant.io/demo/frontend.html
-2017-05-15T12:10:46+00:00
+2017-05-15T23:14:04+00:00
https://home-assistant.io/demo/index.html
-2017-05-15T12:10:46+00:00
+2017-05-15T23:14:04+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-event.html
-2017-05-15T12:10:46+00:00
+2017-05-15T23:14:04+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-info.html
-2017-05-15T12:10:46+00:00
+2017-05-15T23:14:04+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-service.html
-2017-05-15T12:10:46+00:00
+2017-05-15T23:14:04+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-state.html
-2017-05-15T12:10:46+00:00
+2017-05-15T23:14:04+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-template.html
-2017-05-15T12:10:46+00:00
+2017-05-15T23:14:04+00:00
https://home-assistant.io/demo/panels/ha-panel-history.html
-2017-05-15T12:10:46+00:00
+2017-05-15T23:14:04+00:00
https://home-assistant.io/demo/panels/ha-panel-iframe.html
-2017-05-15T12:10:46+00:00
+2017-05-15T23:14:04+00:00
https://home-assistant.io/demo/panels/ha-panel-logbook.html
-2017-05-15T12:10:46+00:00
+2017-05-15T23:14:04+00:00
https://home-assistant.io/demo/panels/ha-panel-map.html
-2017-05-15T12:10:46+00:00
+2017-05-15T23:14:04+00:00
https://home-assistant.io/googlef4f3693c209fe788.html
-2017-05-15T12:10:46+00:00
+2017-05-15T23:14:04+00:00
https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html
-2017-05-15T12:10:46+00:00
+2017-05-15T23:14:04+00:00
https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html
-2017-05-15T12:10:46+00:00
+2017-05-15T23:14:04+00:00
https://home-assistant.io/static/mdi-demo.html
-2017-05-15T12:10:46+00:00
+2017-05-15T23:14:04+00:00