Complete refresh (#7)
This commit is contained in:
8
example/CHANGELOG.md
Normal file
8
example/CHANGELOG.md
Normal file
@@ -0,0 +1,8 @@
|
||||
<!-- https://developers.home-assistant.io/docs/add-ons/presentation#keeping-a-changelog -->
|
||||
## 1.0.0
|
||||
|
||||
- Complete refresh of all files
|
||||
|
||||
## 0.1.0
|
||||
|
||||
- Initial release
|
||||
15
example/DOCS.md
Normal file
15
example/DOCS.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Home Assistant Add-on: Example add-on
|
||||
|
||||
## Installation
|
||||
|
||||
Follow these steps to get the add-on installed on your system:
|
||||
|
||||
1. Navigate in your Home Assistant frontend to **Supervisor** -> **Add-on Store**.
|
||||
1. Find the "Example add-on" add-on and click it.
|
||||
1. Click on the "INSTALL" button.
|
||||
|
||||
## How to use
|
||||
|
||||
This add-on really does nothing. It is just an example.
|
||||
|
||||
When started it will print "Hello world" in the log and exit.
|
||||
6
example/Dockerfile
Normal file
6
example/Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
||||
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-dockerfile
|
||||
ARG BUILD_FROM
|
||||
FROM $BUILD_FROM
|
||||
|
||||
# Copy data
|
||||
COPY rootfs /
|
||||
17
example/README.md
Normal file
17
example/README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Home Assistant Add-on: Example add-on
|
||||
|
||||
_Example add-on to use as a blueprint for new add-ons._
|
||||
|
||||
![Supports aarch64 Architecture][aarch64-shield]
|
||||
![Supports amd64 Architecture][amd64-shield]
|
||||
![Supports armhf Architecture][armhf-shield]
|
||||
![Supports armv7 Architecture][armv7-shield]
|
||||
![Supports i386 Architecture][i386-shield]
|
||||
|
||||
|
||||
|
||||
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
|
||||
[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg
|
||||
[armhf-shield]: https://img.shields.io/badge/armhf-yes-green.svg
|
||||
[armv7-shield]: https://img.shields.io/badge/armv7-yes-green.svg
|
||||
[i386-shield]: https://img.shields.io/badge/i386-yes-green.svg
|
||||
9
example/build.json
Normal file
9
example/build.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"build_from": {
|
||||
"aarch64": "ghcr.io/home-assistant/aarch64-base:3.14",
|
||||
"amd64": "ghcr.io/home-assistant/amd64-base:3.14",
|
||||
"armhf": "ghcr.io/home-assistant/armhf-base:3.14",
|
||||
"armv7": "ghcr.io/home-assistant/armv7-base:3.14",
|
||||
"i386": "ghcr.io/home-assistant/i386-base:3.14"
|
||||
}
|
||||
}
|
||||
16
example/config.json
Normal file
16
example/config.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "Example add-on",
|
||||
"version": "1.0.0",
|
||||
"slug": "example",
|
||||
"description": "Example add-on",
|
||||
"url": "https://github.com/home-assistant/addons-example/tree/master/example",
|
||||
"arch": [
|
||||
"armhf",
|
||||
"armv7",
|
||||
"aarch64",
|
||||
"amd64",
|
||||
"i386"
|
||||
],
|
||||
"startup": "once",
|
||||
"image": "ghcr.io/home-assistant/{arch}-addon-example"
|
||||
}
|
||||
BIN
example/icon.png
Normal file
BIN
example/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
5
example/rootfs/etc/services.d/example/finish
Normal file
5
example/rootfs/etc/services.d/example/finish
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/execlineb -S1
|
||||
# ==============================================================================
|
||||
# Take down the S6 supervision tree when example fails
|
||||
# ==============================================================================
|
||||
s6-svscanctl -t /var/run/s6/services
|
||||
8
example/rootfs/etc/services.d/example/run
Normal file
8
example/rootfs/etc/services.d/example/run
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# ==============================================================================
|
||||
# Start the example service
|
||||
# ==============================================================================
|
||||
|
||||
## Add your code here
|
||||
|
||||
bashio::log.info "Hello world"
|
||||
Reference in New Issue
Block a user