Skip to content

Commit

Permalink
Update Dockerfile and DOCS.md
Browse files Browse the repository at this point in the history
Dockerfile now use tagged archives for installation.
In DOCS.md, update link related to pairing.
  • Loading branch information
mak-gitdev committed Nov 20, 2023
1 parent e43ff66 commit 34cdcb9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ See [Usage](https://github.com/mak-gitdev/HA_enoceanmqtt/wiki/Usage) for more in


## Issues
Any issue should be open on the HA\_enoceanmqtt [issue tracker](https://github.com/mak-gitdev/HA_enoceanmqtt/issues).
Issues should be reported on the HA\_enoceanmqtt [issue tracker](https://github.com/mak-gitdev/HA_enoceanmqtt/issues).


## Versions
Expand Down
4 changes: 2 additions & 2 deletions addon-dev/DOCS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Configuration
Configuration required to startup HA_EnOceanMQTT is available from the addon configuration.
Configuration required to startup HA_EnOceanMQTT is available from the addon configuration tab.
Leave the MQTT broker configuration empty if you want to use your Home Assistant Mosquitto broker parameters.
See the related [wiki page](https://github.com/mak-gitdev/HA_enoceanmqtt/wiki/Home-Assistant-Addon#configuration) for more details.

# Pairing
See the related [wiki page](https://github.com/mak-gitdev/HA_enoceanmqtt/wiki/Usage#1--pairing-your-device) for more details.
See the related [wiki page](https://github.com/mak-gitdev/HA_enoceanmqtt/wiki/Pairing-your-device) for more details.

# Additional Information
I greatly recommend to have a look at the [wiki](https://github.com/mak-gitdev/HA_enoceanmqtt/wiki) page for all sort of information and material regarding HA_enoceanmqtt.
16 changes: 12 additions & 4 deletions addon-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,20 @@ RUN apk add --no-cache python3 py3-pip git && \
pip3 install git+https://github.com/mak-gitdev/enocean.git && \
git clone https://github.com/embyt/enocean-mqtt.git && \
cd enocean-mqtt && python3 setup.py develop && cd .. && \
if [ -z "${BUILD_VERSION##*.*.*}" ]; then \
echo "Installing development version ${BUILD_VERSION%-*}" && \
if [ "${BUILD_VERSION}" = "head" ]; then \
echo "Installing from repository head" && \
git clone -b develop --single-branch --depth 1 https://github.com/mak-gitdev/HA_enoceanmqtt.git ; \
else \
echo "Installing Stable version ${BUILD_VERSION%-*}" && \
git clone -b master --single-branch --depth 1 https://github.com/mak-gitdev/HA_enoceanmqtt.git ; \
if [ -z "${BUILD_VERSION##*.*.*}" ]; then \
echo "Installing development version ${BUILD_VERSION%-*}" ; \
else \
echo "Installing stable version ${BUILD_VERSION%-*}" ; \
fi; \
wget -nv -O "/app.tar.gz" \
"https://github.com/mak-gitdev/HA_enoceanmqtt/archive/refs/tags/${BUILD_VERSION%-*}.tar.gz" && \
echo "Extracting /app.tar.gz" && tar xzf "/app.tar.gz" && \
rm "/app.tar.gz" && \
mv -v "HA_enoceanmqtt-${BUILD_VERSION%-*}" HA_enoceanmqtt ; \
fi; \
cp -rf HA_enoceanmqtt/enoceanmqtt enocean-mqtt && \
rm -rf HA_enoceanmqtt
Expand Down

0 comments on commit 34cdcb9

Please sign in to comment.