update the polygon erigon setup to be able to use public rpcs and the new official supported version

This commit is contained in:
Sebastian
2022-12-18 12:02:30 +01:00
parent f0ee4c3038
commit d5313803dd
3 changed files with 35 additions and 14 deletions

View File

@@ -5,7 +5,7 @@ FROM golang:1.19-alpine as builder
RUN apk add --no-cache make g++ gcc musl-dev linux-headers git
# Grab ERIGON_VERSION from Build Args
ARG ERIGON_VERSION
ARG ERIGON_VERSION=v0.0.4
# Clone the repo to that folder
RUN git clone --recurse-submodules -j8 https://github.com/maticnetwork/erigon.git
@@ -25,6 +25,25 @@ FROM alpine:latest
RUN apk add --no-cache ca-certificates curl jq libstdc++ libgcc
COPY --from=builder /go/erigon/build/bin/erigon /usr/local/bin/
# ENV HEIMDALLD=http://heimdalld:26657
# ENV HEIMDALLR=http://heimdallr:1317
ENV HEIMDALLD=https://polygon-mainnet-rpc.allthatnode.com:26657
ENV HEIMDALLR=https://polygon-mainnet-rpc.allthatnode.com:1317
# P2P
EXPOSE 27113
# HTTP / WS
EXPOSE 8545
# Metrics
EXPOSE 6060
# PProf
EXPOSE 6061
# Set entrypoint
COPY ./scripts/entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod u+x /usr/local/bin/entrypoint.sh