File tree 2 files changed +20
-1
lines changed
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 \
65
65
*) echo "Unexpected architecture: $(uname -m)" && exit 1;; \
66
66
esac
67
67
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
+
68
76
# #################
69
77
# --- runner --- #
70
78
# #################
@@ -86,10 +94,12 @@ RUN apt-get update && \
86
94
chown -R monero:monero /opt/bitmonero
87
95
88
96
COPY --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
89
99
90
100
USER monero
91
101
WORKDIR /home/monero
92
102
VOLUME /opt/bitmonero
93
103
EXPOSE 18080 18081
94
104
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 " $@ "
9
+
You can’t perform that action at this time.
0 commit comments