Files
ethereum-rpc-docker/shibarium/cometbft.Dockerfile
rob ee21a0245e shibarium: build bor + heimdall from source (no published images)
shibaone ships no docker images for the bone fork — only source + .deb config
packages — so both Dockerfiles must clone+build, not FROM a (nonexistent) image.

- bor.Dockerfile: clone shibaone/bor@${BOR_VERSION}, make bor, cp build/bin/bor
  (was: alpine + wrong /src/build/bor path). golang:1.22.1 like upstream.
- cometbft.Dockerfile: clone shibaone/heimdall@${CL_VERSION}, make install
  (was: FROM shibaone/heimdall:v1.0.7-bone — that tag does not exist on any
  registry), then layer the CometBFT init entrypoint.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 11:46:00 +00:00

41 lines
1.6 KiB
Docker

# Shibarium heimdall consensus node — BUILT FROM SOURCE.
#
# shibaone publishes NO heimdall docker image (only source + release .deb config
# packages), so we cannot `FROM shibaone/heimdall:<tag>` — that tag does not exist
# on any registry. Instead we mirror the upstream shibaone/heimdall Dockerfile
# (`make install`) but clone the pinned tag, then layer the vibe-node CometBFT
# bootstrap entrypoint (init.sh + cometbft-common.sh).
#
# Build args:
# CL_REPO - heimdall source repo (default: https://github.com/shibaone/heimdall)
# CL_VERSION - heimdall version tag (passed by the template, e.g. v1.0.7-bone)
#
# `make install` puts heimdalld + heimdallcli on /go/bin (already on PATH).
# The entrypoint is init.sh: it sources cometbft-common.sh, runs heimdalld init
# --chain shibarium, fetches the heimdall-109 genesis from GENESIS_URL, sets the
# shibarium seeds/persistent_peers, then exec's `heimdalld start --rest-server`.
ARG CL_REPO=https://github.com/shibaone/heimdall
ARG CL_VERSION=v1.0.7-bone
FROM golang:1.22
ARG CL_REPO
ARG CL_VERSION
RUN apt-get update -y && apt-get upgrade -y \
&& apt-get install -y --no-install-recommends build-essential git curl jq ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /var/lib/heimdall
RUN git clone --depth 1 --branch ${CL_VERSION} ${CL_REPO} . \
&& make install
# vibe-node CometBFT bootstrap entrypoint (context is ./shibarium)
COPY ./scripts/cometbft-common.sh /usr/local/bin/cometbft-common.sh
COPY ./scripts/init.sh /usr/local/bin/init.sh
RUN chmod +x /usr/local/bin/init.sh /usr/local/bin/cometbft-common.sh
EXPOSE 1317 26656 26657
ENTRYPOINT ["init.sh"]