shibarium: build bor + heimdall from source (bone fork, chain 109) #12
38
shibarium/bor.Dockerfile
Normal file
38
shibarium/bor.Dockerfile
Normal file
@@ -0,0 +1,38 @@
|
||||
# Shibarium bor execution client Dockerfile
|
||||
# Build from shibaone/bor source repository.
|
||||
#
|
||||
# Build args:
|
||||
# BOR_REPO - repository URL (default: https://github.com/shibaone/bor)
|
||||
# BOR_VERSION - version tag (default: v1.3.9-bone)
|
||||
#
|
||||
# The shibaone/bor repo has a working Dockerfile that builds via `make bor`.
|
||||
# ENTRYPOINT is `bor`
|
||||
#
|
||||
# This Dockerfile is used for building shibarium bor from source,
|
||||
# as shibaone does not publish pre-built Docker images to Docker Hub.
|
||||
|
||||
ARG BOR_REPO=https://github.com/shibaone/bor
|
||||
ARG BOR_VERSION=v1.3.9-bone
|
||||
|
||||
# Use a Go builder image to clone and build bor from source
|
||||
FROM golang:1.21-alpine AS builder
|
||||
|
||||
RUN apk add --no-cache git make gcc musl-dev
|
||||
|
||||
WORKDIR /src
|
||||
RUN git clone --depth 1 --branch ${BOR_VERSION} ${BOR_REPO} .
|
||||
|
||||
RUN make bor
|
||||
|
||||
# Final stage: copy the built binary
|
||||
FROM alpine:3.18
|
||||
|
||||
WORKDIR /usr/local/bin
|
||||
COPY --from=builder /src/build/bor /usr/local/bin/bor
|
||||
|
||||
# Create data directory
|
||||
RUN mkdir -p /root/.bor
|
||||
|
||||
WORKDIR /root/.bor
|
||||
|
||||
ENTRYPOINT ["bor"]
|
||||
@@ -10,7 +10,7 @@
|
||||
# the node before exec'ing heimdalld start.
|
||||
|
||||
ARG CL_IMAGE=shibaone/heimdall
|
||||
ARG CL_VERSION=TODO_VERIFY_VERSION
|
||||
ARG CL_VERSION=v1.0.7-bone
|
||||
|
||||
FROM ${CL_IMAGE}:${CL_VERSION}
|
||||
|
||||
|
||||
@@ -31,10 +31,13 @@ set -e
|
||||
. /usr/local/bin/cometbft-common.sh
|
||||
|
||||
CMT_HOME="${CMT_HOME:-/root/.heimdalld}"
|
||||
CHAIN_ID="${CHAIN_ID:-shibarium-mainnet}"
|
||||
CHAIN="${CHAIN:-mainnet}"
|
||||
CHAIN_ID="${CHAIN_ID:-heimdall-109}"
|
||||
CHAIN="${CHAIN:-shibarium}"
|
||||
P2P_PORT="${P2P_PORT:-26656}"
|
||||
MONIKER="${MONIKER:-d${DOMAIN:-local}}"
|
||||
# Shibarium heimdall mainnet seeds (verified from shibaone/node-ansible branch shibarium)
|
||||
# These are the persistent peers that match the bor bootnodes
|
||||
PERSISTENT_PEERS="${PERSISTENT_PEERS:-96f333f77d5e2f877d3afe4a3643e4f99949ef5c@44.204.200.100:26656,e6676c16d8a9ec98bbbce8d137a3765632720328@18.136.201.99:26656,8c71c016de039e50e48f74683784054f46bd0a1c@3.99.233.157:26656,fb613910f04f0ae0001d93b70552d4d5c358ad78@63.32.53.219:26656,08c3509327941a593eef258f23ab568c10d28905@52.12.214.141:26656}"
|
||||
|
||||
ct_log "Starting heimdalld bootstrap for chain ${CHAIN_ID} (home=${CMT_HOME})"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user