Added Dockerfile

pull/60/head
weetmuts 2020-01-09 18:42:02 +01:00
rodzic 7fa9f1079a
commit ff88bd4d35
3 zmienionych plików z 17 dodań i 5 usunięć

15
Dockerfile 100644
Wyświetl plik

@ -0,0 +1,15 @@
FROM alpine:latest AS build
RUN apk add --no-cache alpine-sdk
RUN git clone https://github.com/weetmuts/wmbusmeters.git
WORKDIR /wmbusmeters
RUN make
FROM alpine:latest as scratch
ENV QEMU_EXECVE=1
RUN apk add --no-cache mosquitto-clients libstdc++
WORKDIR /wmbusmeters
COPY --from=build /wmbusmeters/build/wmbusmeters /wmbusmeters/wmbusmeters
RUN mkdir -p /wmbusmeters_data/logs/meter_readings && mkdir -p /wmbusmeters_data/etc/wmbusmeters.d/ && echo -e "loglevel=normal\ndevice=auto\nlistento=t1\nlogtelegrams=false\nformat=json\nmeterfiles=/wmbusmeters_data/logs/meter_readings\nmeterfilesaction=overwrite\nlogfile=/wmbusmeters_data/logs/wmbusmeters.log" > /wmbusmeters_data/etc/wmbusmeters.conf
VOLUME /wmbusmeters_data/
ENTRYPOINT ["/wmbusmeters/wmbusmeters", "--useconfig=/wmbusmeters_data/"]

Wyświetl plik

@ -214,10 +214,7 @@ multiple meters as long as they all require the same radio mode C1 or
T1.
However if you use amb8465 or rtlwmbus, then you can listen to both C1
and T1 telegrams at the same time. Unfortunately the original version
of rtl_wmbus (`https://github.com/xaelsouth/rtl-wmbus.git`) cannot
reliably listen to C1 telegrams, but the fork
`https://github.com/afflux/rtl-wmbus.git` can!
and T1 telegrams at the same time.
# Usage examples

Wyświetl plik

@ -475,7 +475,7 @@ Detected detectAuto(string devicefile,
if (ac == AccessCheck::NotSameGroup)
{
// The device exists but we cannot read it!
error("You are not in the same group as the device /dev/rtlsdr\n");
error("You are not in the same group as the device /dev/amb8465\n");
}
}