First draft of the pub/sub notifier

This commit is contained in:
kexkey
2019-05-17 18:29:06 -04:00
committed by kexkey
parent 2c3b28bc84
commit ed71a2ed8f
13 changed files with 231 additions and 19 deletions

View File

@@ -0,0 +1,17 @@
FROM eclipse-mosquitto:1.6
ENV HOME /notifier
RUN apk --no-cache --update add jq curl su-exec
WORKDIR ${HOME}
COPY script/* ./
RUN chmod +x startnotifier.sh requesthandler.sh \
&& chmod o+w .
ENTRYPOINT ["su-exec"]
# docker run --rm -d -p 1883:1883 -p 9001:9001 --network cyphernodenet --name broker eclipse-mosquitto
# docker run --rm -it --network cyphernodenet --name mq1 mqtt-client