Closed LiJinyao closed 4 years ago
This fixes #26 , would like to see this merged :-)
If you want to use this before it gets merged as I do, I created a Docker file that pulls the changes from @LiJinyao:
FROM golang:1.14
RUN go get github.com/LiJinyao/transmission-exporter
WORKDIR /go/src/github.com/LiJinyao/transmission-exporter
RUN make
RUN make build
FROM alpine:latest
RUN apk add --update ca-certificates
COPY --from=0 /go/src/github.com/LiJinyao/transmission-exporter/transmission-exporter /usr/bin/transmission-exporter
RUN chmod +x /usr/bin/transmission-exporter
EXPOSE 19091
ENTRYPOINT ["/usr/bin/transmission-exporter"]
Please Note This docker file doesn't target a specific hash, but instead the head of this pr branch. If LiJinyao pushes anything else you will build that too. I don't have enough experience with Go to make Go Mods work correctly.
Awesome! @metalmatze Can we get a new release? :-)
I get a warning says
After reading the transmission rpc-spec.txt, I found that the type of
LastScrapeTimedOut
is boolean. So I changed the type and it works good with no warning on the latest transmission.