kopia lustrzana https://github.com/weetmuts/wmbusmeters
Add rtl_reset to docker image
rodzic
a5f4f43375
commit
97f2082dbc
|
@ -3,7 +3,8 @@ RUN apk add --no-cache alpine-sdk gcc linux-headers librtlsdr-dev libxml2-dev cm
|
|||
RUN git clone https://github.com/steve-m/librtlsdr.git && \
|
||||
git clone https://github.com/wmbusmeters/wmbusmeters.git && \
|
||||
git clone https://github.com/weetmuts/rtl-wmbus.git && \
|
||||
git clone https://github.com/merbanan/rtl_433.git
|
||||
git clone https://github.com/merbanan/rtl_433.git && \
|
||||
git clone https://github.com/ED6E0F17/rtl_reset.git
|
||||
WORKDIR /librtlsdr
|
||||
RUN cmake -B build -G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
||||
|
@ -20,6 +21,8 @@ WORKDIR /rtl_433
|
|||
RUN cmake -B build -G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=MinSizeRel && \
|
||||
cmake --build build
|
||||
WORKDIR /rtl_reset
|
||||
RUN make
|
||||
|
||||
FROM alpine as scratch
|
||||
RUN apk add --no-cache mosquitto-clients libstdc++ curl libusb rtl-sdr libxml2 netcat-openbsd
|
||||
|
@ -30,6 +33,7 @@ COPY --from=build /librtlsdr/build/src/rtl_* /usr/bin/
|
|||
COPY --from=build /wmbusmeters/build/wmbusmeters /wmbusmeters/wmbusmeters
|
||||
COPY --from=build /rtl-wmbus/build/rtl_wmbus /usr/bin/rtl_wmbus
|
||||
COPY --from=build /rtl_433/build/src/rtl_433 /usr/bin/rtl_433
|
||||
COPY --from=build /rtl_reset/rtl_reset /usr/bin/rtl_reset
|
||||
COPY --from=build /wmbusmeters/docker/docker-entrypoint.sh /wmbusmeters/docker-entrypoint.sh
|
||||
VOLUME /wmbusmeters_data/
|
||||
CMD ["sh", "/wmbusmeters/docker-entrypoint.sh"]
|
||||
|
|
Ładowanie…
Reference in New Issue