From e1ad904f2736ece1de431572830ca895ad88140c Mon Sep 17 00:00:00 2001 From: lza_menace Date: Mon, 19 Sep 2022 21:23:37 -0700 Subject: [PATCH] update exporter install proc to get latest code --- wownero/dockerfiles/wownerod_exporter | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/wownero/dockerfiles/wownerod_exporter b/wownero/dockerfiles/wownerod_exporter index bf39827..d2d641f 100644 --- a/wownero/dockerfiles/wownerod_exporter +++ b/wownero/dockerfiles/wownerod_exporter @@ -1,10 +1,9 @@ -FROM ubuntu:22.04 +FROM golang:bullseye -RUN apt-get update && apt-get install wget tar -y +# Install exporter from Golang source +RUN go install github.com/cirocosta/monero-exporter/cmd/monero-exporter@master -RUN wget https://github.com/cirocosta/monero-exporter/releases/download/v0.0.2/monero-exporter_0.0.2_linux_amd64.tar.gz -O monero-exporter.tar.gz && \ - tar xzvf monero-exporter.tar.gz && \ - mv ./monero-exporter /usr/local/bin && \ - chmod +x /usr/local/bin/monero-exporter +# Install GeoLite database +RUN wget https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-City.mmdb -O /geoip.mmdb -ENTRYPOINT [ "/usr/local/bin/monero-exporter" ] \ No newline at end of file +ENTRYPOINT [ "monero-exporter", "--geoip-filepath", "/geoip.mmdb" ] \ No newline at end of file