File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,14 @@ RUN case "$(uname -m)" in \
6565 *) echo "Unexpected architecture: $(uname -m)" && exit 1;; \
6666 esac
6767
68+
69+ # #################
70+ # -- exporter -- #
71+ # #################
72+ FROM docker.io/golang:1.19 AS exporter
73+
74+ RUN GO111MODULE=on go install github.com/cirocosta/monero-exporter/cmd/monero-exporter@master
75+
6876# #################
6977# --- runner --- #
7078# #################
@@ -86,10 +94,12 @@ RUN apt-get update && \
8694 chown -R monero:monero /opt/bitmonero
8795
8896COPY --from=builder /opt/monero/build/Linux/_no_branch_/release/bin/* /opt/monero/
97+ COPY --from=exporter /go/bin/monero-exporter /opt/monero/monero-exporter
98+ COPY ./entrypoint.sh /entrypoint.sh
8999
90100USER monero
91101WORKDIR /home/monero
92102VOLUME /opt/bitmonero
93103EXPOSE 18080 18081
94104
95- ENTRYPOINT ["tini" , "--" , "/opt/monero/monerod " ]
105+ ENTRYPOINT ["tini" , "--" , "/entrypoint.sh " ]
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ /opt/monero/monero-exporter \
4+ --bind-addr " ${EXPORTER_BIND:- " :9000" } " \
5+ --monero-addr " http://127.0.0.1:18081" \
6+ --telemetry-path " ${EXPORTER_PATH:- " /metrics" } " &
7+
8+ /opt/monero/monerod " ${MONEROD_ARGS} "
9+
You can’t perform that action at this time.
0 commit comments