mirror of
https://github.com/mtan93/homeassistant-addons.git
synced 2026-04-02 06:13:11 +01:00
Use dockerhub hosted images as base
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [0.8.0] - 2021-01-05
|
||||||
|
- Moved to dockerhub located images
|
||||||
|
|
||||||
## [0.7.0] - 2021-01-02
|
## [0.7.0] - 2021-01-02
|
||||||
- Updated logo
|
- Updated logo
|
||||||
|
|
||||||
|
|||||||
@@ -1,21 +1,3 @@
|
|||||||
FROM hassioaddons/debian-base
|
# sneaky trick to get around the requirement of {arch}-variabe based docker repositories
|
||||||
ENV LANG C.UTF-8
|
|
||||||
|
|
||||||
# install node and build tools (needed by node-pre-gy)
|
FROM maxwinterstein/homeassistant-addon-eufy-ha-mqtt-bridge:latest
|
||||||
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt install -y nodejs g++ make python
|
|
||||||
|
|
||||||
# Calls for a random number to break the cache
|
|
||||||
# (https://stackoverflow.com/questions/35134713/disable-cache-for-specific-run-commands/58801213#58801213)
|
|
||||||
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
|
|
||||||
|
|
||||||
# add source and unpack
|
|
||||||
ADD "https://github.com/matijse/eufy-ha-mqtt-bridge/tarball/main" /src.tar.gz
|
|
||||||
RUN mkdir /app && tar xvfz /src.tar.gz -C /app --strip-components=1
|
|
||||||
|
|
||||||
# install all (and json2yaml for Cofiguration parsing)
|
|
||||||
WORKDIR /app
|
|
||||||
RUN npm install && npm install -g json2yaml
|
|
||||||
|
|
||||||
COPY run.sh /
|
|
||||||
RUN chmod a+x /run.sh
|
|
||||||
CMD [ "/run.sh" ]
|
|
||||||
|
|||||||
21
eufy-ha-mqtt-bridge/Dockerfile-real
Normal file
21
eufy-ha-mqtt-bridge/Dockerfile-real
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
FROM hassioaddons/debian-base
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
|
||||||
|
# install node and build tools (needed by node-pre-gy)
|
||||||
|
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt install -y nodejs g++ make python
|
||||||
|
|
||||||
|
# Calls for a random number to bust the cache
|
||||||
|
# (https://stackoverflow.com/questions/35134713/disable-cache-for-specific-run-commands/58801213#58801213)
|
||||||
|
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
|
||||||
|
|
||||||
|
# add source and unpack
|
||||||
|
ADD "https://github.com/matijse/eufy-ha-mqtt-bridge/tarball/main" /src.tar.gz
|
||||||
|
RUN mkdir /app && tar xvfz /src.tar.gz -C /app --strip-components=1
|
||||||
|
|
||||||
|
# install all (and json2yaml for cofiguration parsing)
|
||||||
|
WORKDIR /app
|
||||||
|
RUN npm install && npm install -g json2yaml
|
||||||
|
|
||||||
|
COPY run.sh /
|
||||||
|
RUN chmod a+x /run.sh
|
||||||
|
CMD [ "/run.sh" ]
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
# Home Assistant Add-on: Eufy Home Assistant MQTT Bridge
|
# Home Assistant Add-on: Eufy Home Assistant MQTT Bridge
|
||||||
|
## Based on https://github.com/matijse/eufy-ha-mqtt-bridge/
|
||||||
|
|
||||||
---
|
---
|
||||||
## 🚨 This is some experimental release! 🚨
|
## 🚨 This is some experimental release! 🚨
|
||||||
---
|
---
|
||||||
|
|
||||||
**As this add-on will be build locally it might take some time (8min on my rpi4). This will be solved by pre-build images soon.**
|
**The underlaying docker image will be build every night until there is some kind of versioning available.**
|
||||||
|
**If a feature was released at eufy-ha-mqtt-bridge, it might be available as recently as the next day.**
|
||||||
|
|
||||||
Quick wrapp around https://github.com/matijse/eufy-ha-mqtt-bridge.
|
Quick wrapp around https://github.com/matijse/eufy-ha-mqtt-bridge.
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "Eufy Home Assistant MQTT Bridge",
|
"name": "Eufy Home Assistant MQTT Bridge",
|
||||||
"version": "0.6.0",
|
"version": "0.7.0",
|
||||||
"slug": "eufy-ha-mqtt-bridge",
|
"slug": "eufy-ha-mqtt-bridge",
|
||||||
"description": "Publish events as MQTT messages",
|
"description": "Publish events as MQTT messages",
|
||||||
"arch": [
|
"arch": [
|
||||||
"armhf",
|
"armhf",
|
||||||
"armv7",
|
"armv7",
|
||||||
"aarch64",
|
"aarch64",
|
||||||
"amd64",
|
"amd64"
|
||||||
"i386"
|
|
||||||
],
|
],
|
||||||
"startup": "application",
|
"startup": "application",
|
||||||
"boot": "auto",
|
"boot": "auto",
|
||||||
@@ -41,6 +40,6 @@
|
|||||||
"map": [
|
"map": [
|
||||||
"share:rw"
|
"share:rw"
|
||||||
],
|
],
|
||||||
"hassio_role": "default",
|
"hassio_role": "default",
|
||||||
"hassio_api": true
|
"hassio_api": true
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user