weatherlink-tools 0.1.0

Collects data from a Weatherlink Live device, sends it to MQTT or Prometheus
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Builds an image containing the binary and little else.

# Builder image
FROM docker.io/library/rust
COPY . /weatherlink-tools
RUN cd /weatherlink-tools \
  && cargo --version \
  && cargo build --all-targets --release

# Release image: copy executable from builder
FROM docker.io/library/debian:bookworm-slim
RUN apt-get update \
  && apt-get install -y curl \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists /var/cache/apt/archives
COPY --from=0 /weatherlink-tools/target/release/weatherlink-tools /weatherlink-tools
RUN chmod +x /weatherlink-tools && /weatherlink-tools --help