HUB
Sign inSign up

runonflux/explorer

By runonflux

•Updated 30 days ago

Flux Explorer

Image
0

50K+

runonflux/explorer repository overview

⁠Flux Insight Explorer image

ghcr.io/runonflux/explorer: the Flux block explorer (bitcore-node, insight-api and the insight-ui React site, from the @runonflux npm packages) with its own fluxd. MongoDB runs as a separate component (mongo:8.0.34).

Everything the explorer runs is in the image: Node 24, the npm packages pinned by package-lock.json, fluxd from Flux's apt repository and its proving parameters. A container start installs nothing, so a new image version is new code.

⁠Environment

VariableDefault
DB_COMPONENT_NAMEMongoDB host: on Flux, flux<mongo component>_<app name>fluxmongodb_explorerflux
BOOTSTRAP1: on a volume with no chain, stream the bootstrap archive into fluxd's datadir before the first startoff
BOOTSTRAP_URLthe archivehttps://cdn-geo.runonflux.io/apps/fluxshare/getfile/flux_explorer_bootstrap.tar.gz
TESTNET1: testnet0
NODE_HEAP_MBnode's heap limit: node stops at it rather than fluxd being killed when memory runs out1536

⁠The volume

/data/explorer holds bitcore-node.json and fluxd's datadir data/ with its flux.conf, both written on every start (the image's settings, the environment); flux.conf keeps its random RPC password from one start to the next. A volume from the previous image keeps its chain: /data/bitcore-node/bin/mynode/data is moved to /data/explorer/data on the first start.

The bootstrap streams into tar without a copy on disk. A failed attempt is discarded and retried, three attempts in all; then fluxd syncs from its peers instead.

⁠Running

The entrypoint prepares /data as root and runs bitcore-node, and the fluxd it starts, as the unprivileged explorer user. The health check passes when the API answers, or while the bootstrap downloads or fluxd catches up, when fluxd answers. The container stops on SIGINT, which bitcore-node handles by stopping fluxd cleanly.

⁠Releasing

A v* tag builds the image, pushes it by digest, runs test/smoke.sh on the pulled image and only then tags it ghcr.io/runonflux/explorer:<version>. App specifications name a version tag.

Tag summary

Content type

Image

Digest

sha256:d6cf5bb9d…

Size

828.5 MB

Last updated

30 days ago

docker pull runonflux/explorer