Compare commits
7 Commits
@@ -26,12 +26,6 @@ comparison to installing any other Home Assistant add-on.
|
|||||||
1. Check the logs of the "ZeroTier One" add-on to see if everything went well.
|
1. Check the logs of the "ZeroTier One" add-on to see if everything went well.
|
||||||
1. The instance will show up in your ZeroTier account.
|
1. The instance will show up in your ZeroTier account.
|
||||||
|
|
||||||
Home Assistant, by default, ships with the Community Add-ons store installed.
|
|
||||||
However, if it is missing (for any reason), you can add it by clicking the
|
|
||||||
button My button below.
|
|
||||||
|
|
||||||
[![Add repository to your Home Assitant instance.][repository-badge]][repository]
|
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
**Note**: _Remember to restart the add-on when the configuration is changed._
|
**Note**: _Remember to restart the add-on when the configuration is changed._
|
||||||
@@ -145,7 +139,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
|
|
||||||
[addon-badge]: https://my.home-assistant.io/badges/supervisor_addon.svg
|
[addon-badge]: https://my.home-assistant.io/badges/supervisor_addon.svg
|
||||||
[addon]: https://my.home-assistant.io/redirect/supervisor_addon/?addon=a0d7b954_zerotier
|
[addon]: https://my.home-assistant.io/redirect/supervisor_addon/?addon=a0d7b954_zerotier&repository_url=https%3A%2F%2Fgithub.com%2Fhassio-addons%2Frepository
|
||||||
[api]: https://www.zerotier.com/manual.shtml#4_1
|
[api]: https://www.zerotier.com/manual.shtml#4_1
|
||||||
[contributors]: https://github.com/hassio-addons/addon-zerotier/graphs/contributors
|
[contributors]: https://github.com/hassio-addons/addon-zerotier/graphs/contributors
|
||||||
[discord-ha]: https://discord.gg/c5DvZ4e
|
[discord-ha]: https://discord.gg/c5DvZ4e
|
||||||
@@ -155,7 +149,5 @@ SOFTWARE.
|
|||||||
[issue]: https://github.com/hassio-addons/addon-zerotier/issues
|
[issue]: https://github.com/hassio-addons/addon-zerotier/issues
|
||||||
[reddit]: https://reddit.com/r/homeassistant
|
[reddit]: https://reddit.com/r/homeassistant
|
||||||
[releases]: https://github.com/hassio-addons/addon-zerotier/releases
|
[releases]: https://github.com/hassio-addons/addon-zerotier/releases
|
||||||
[repository-badge]: https://my.home-assistant.io/badges/supervisor_add_addon_repository.svg
|
|
||||||
[repository]: https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2Fhassio-addons%2Frepository
|
|
||||||
[semver]: http://semver.org/spec/v2.0.0.htm
|
[semver]: http://semver.org/spec/v2.0.0.htm
|
||||||
[zerotier]: https://www.zerotier.com/
|
[zerotier]: https://www.zerotier.com/
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:11.1.0
|
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:12.0.0
|
||||||
# hadolint ignore=DL3006
|
# hadolint ignore=DL3006
|
||||||
FROM ${BUILD_FROM}
|
FROM ${BUILD_FROM}
|
||||||
|
|
||||||
@@ -10,21 +10,21 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|||||||
RUN \
|
RUN \
|
||||||
apk add --no-cache --virtual .build-dependencies \
|
apk add --no-cache --virtual .build-dependencies \
|
||||||
build-base=0.5-r2 \
|
build-base=0.5-r2 \
|
||||||
cargo=1.56.1-r0 \
|
cargo=1.60.0-r2 \
|
||||||
git=2.34.1-r0 \
|
git=2.36.1-r0 \
|
||||||
linux-headers=5.10.41-r0 \
|
linux-headers=5.16.7-r1 \
|
||||||
openssl-dev=1.1.1l-r8 \
|
openssl-dev=1.1.1o-r0 \
|
||||||
pkgconf=1.8.0-r0 \
|
pkgconf=1.8.0-r0 \
|
||||||
\
|
\
|
||||||
&& apk add --no-cache \
|
&& apk add --no-cache \
|
||||||
libgcc=10.3.1_git20211027-r0 \
|
libgcc=11.2.1_git20220219-r2 \
|
||||||
libstdc++=10.3.1_git20211027-r0 \
|
libstdc++=11.2.1_git20220219-r2 \
|
||||||
\
|
\
|
||||||
&& git clone --branch "1.8.6" --depth=1 \
|
&& git clone --branch "1.10.0" --depth=1 \
|
||||||
"https://github.com/zerotier/ZeroTierOne.git" /tmp/zerotier \
|
"https://github.com/zerotier/ZeroTierOne.git" /tmp/zerotier \
|
||||||
\
|
\
|
||||||
&& cd /tmp/zerotier \
|
&& cd /tmp/zerotier \
|
||||||
&& make \
|
&& CARGO_NET_GIT_FETCH_WITH_CLI=true make \
|
||||||
&& make install \
|
&& make install \
|
||||||
\
|
\
|
||||||
&& apk del --no-cache --purge .build-dependencies \
|
&& apk del --no-cache --purge .build-dependencies \
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
---
|
---
|
||||||
build_from:
|
build_from:
|
||||||
aarch64: ghcr.io/hassio-addons/base/aarch64:11.1.0
|
aarch64: ghcr.io/hassio-addons/base/aarch64:12.0.0
|
||||||
amd64: ghcr.io/hassio-addons/base/amd64:11.1.0
|
amd64: ghcr.io/hassio-addons/base/amd64:12.0.0
|
||||||
armhf: ghcr.io/hassio-addons/base/armhf:11.1.0
|
armhf: ghcr.io/hassio-addons/base/armhf:12.0.0
|
||||||
armv7: ghcr.io/hassio-addons/base/armv7:11.1.0
|
armv7: ghcr.io/hassio-addons/base/armv7:12.0.0
|
||||||
i386: ghcr.io/hassio-addons/base/i386:11.1.0
|
i386: ghcr.io/hassio-addons/base/i386:12.0.0
|
||||||
codenotary:
|
codenotary:
|
||||||
base_image: codenotary@frenck.dev
|
base_image: codenotary@frenck.dev
|
||||||
signer: codenotary@frenck.dev
|
signer: codenotary@frenck.dev
|
||||||
|
|||||||
2
zerotier/rootfs/etc/cont-init.d/zerotier.sh
Normal file → Executable file
2
zerotier/rootfs/etc/cont-init.d/zerotier.sh
Normal file → Executable file
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: ZeroTier One
|
# Home Assistant Community Add-on: ZeroTier One
|
||||||
# Generates an identiy in case it does not exists yet
|
# Generates an identiy in case it does not exists yet
|
||||||
|
|||||||
10
zerotier/rootfs/etc/services.d/zerotier/finish
Normal file → Executable file
10
zerotier/rootfs/etc/services.d/zerotier/finish
Normal file → Executable file
@@ -1,9 +1,11 @@
|
|||||||
#!/usr/bin/execlineb -S0
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: ZeroTier One
|
# Home Assistant Community Add-on: ZeroTier One
|
||||||
# Take down the S6 supervision tree when ZeroTier fails
|
# Take down the S6 supervision tree when ZeroTier fails
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
if -n { s6-test $# -ne 0 }
|
if [[ "${1}" -ne 0 ]] && [[ "${1}" -ne 256 ]]; then
|
||||||
if -n { s6-test ${1} -eq 256 }
|
bashio::log.warning "ZeroTier crashed, halting add-on"
|
||||||
|
/run/s6/basedir/bin/halt
|
||||||
|
fi
|
||||||
|
|
||||||
s6-svscanctl -t /var/run/s6/services
|
bashio::log.info "ZeroTier stopped, restarting..."
|
||||||
|
|||||||
2
zerotier/rootfs/etc/services.d/zerotier/run
Normal file → Executable file
2
zerotier/rootfs/etc/services.d/zerotier/run
Normal file → Executable file
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: ZeroTier One
|
# Home Assistant Community Add-on: ZeroTier One
|
||||||
# Runs ZeroTier One
|
# Runs ZeroTier One
|
||||||
|
|||||||
Reference in New Issue
Block a user