Sign inSign up

ajcrowe/polkadot

By ajcrowe

•Updated over 6 years ago

Parity Polkadot node

Image
1

3.2K

ajcrowe/polkadot repository overview

⁠Polkadot Docker

This builds the Parity Polkadot⁠ node.

All images are built with [Google Cloud Build] and are triggered automatically from any pushed tags.

⁠Images

You can view available images on the Docker Hub⁠

⁠Usage

This image support both passing args directly to the image or setting envrionment variables (see below).

docker run -e "POLKADOT_ENABLE_DEV=true" -e "POLKADOT_BASE_PATH=/data" ajcrowe/polkadot --no-telelmetry

⁠Building

To build the container you simply need to pass in the git reference you want to build

docker build -t user/polkadot:v0.3.0 --build-arg GIT_REF=v0.3.0 .

⁠Environment Variables

You can pass a number environment variables to configure the node

Note: Prior to v0.3.0 environment variables were not prefixed with POLKADOT_

⁠Flags
Environment VariableFlagDescription
POLKADOT_ENABLE_DEV--devRun in development mode; implies --chain=dev --validator --key Alice
POLKADOT_ENABLE_LIGHTCLIENT--lightRun in light client mode
POLKADOT_NO_TELEMETRY--no-telelmetryShould not connect to the Polkadot telemetry server (telemetry is on by default on global chains)
POLKADOT_TELEMETRY-t --telemetryListen to all RPC interfaces (default is local)
POLKADOT_VALIDATOR--validatorEnablevalidator mode
POLKADOT_RPC_EXTERNAL--rcp-externalListen to all RPC interfaces (default is local)
POLKADOT_WS_EXTERNAL--ws-externalListen to all Websocket interfaces (default is local)
⁠Options
Environment VariableFlagDescription
POLKADOT_BASE_PATH-d --base-pathSpecify custom base path
POLKADOT_BOOTNODES--bootnodesSpecify a list of bootnodes
POLKADOT_CHAIN--chainSpecify the chain specification (one of krummelanke, dev, local or staging)
POLKADOT_DB_CACHE--db-cacheLimit the memory the database cache can use
POLKADOT_EXECUTION--executionThe means of execution used when calling into the runtime. Can be either wasm, native or both.
POLKADOT_IN_PEERS--in-peersSpecify the maximum number of incoming connections we're accepting
POLKADOT_KEY--keySpecify additional key seed
POLKADOT_KEYSTORE_PATH--keystore-pathSpecify custom keystore path
POLKADOT_LISTEN_ADDR--listen-addrListen on this multiaddress
POLKADOT_LOG-l --logSets a custom logging filter
POLKADOT_MAX_HEAP_PAGES--max-heap-pagesThe maximum number of 64KB pages to ever allocate for Wasm execution. Don't
POLKADOT_MIN_HEAP_PAGES--min-heap-pagesThe number of 64KB pages to allocate for Wasm execution initially.
POLKADOT_NAME--nameThe human-readable name for this node, as reported to the telemetry server, if enabled
POLKADOT_NODE_KEY--node-keySpecify node secret key (64-character hex string)
POLKADOT_PORT--portSpecify p2p protocol TCP port
POLKADOT_PRUNING--pruningSpecify the pruning mode, a number of blocks to keep or "archive". Default is 256.
POLKADOT_RESERVED_NODES--reserved-nodesSpecify a list of reserved node addresses
POLKADOT_RPC_PORT--rpc-portSpecify HTTP RPC server TCP port
POLKADOT_WS_PORT--ws-portSpecify WebSockets RPC server TCP port
POLKADOT_TELEMETRY_URL--telemetry-urlThe URL of the telemetry server. Implies --telemetry

Tag summary

Content type

Image

Digest

Size

48.8 MB

Last updated

over 6 years ago

docker pull ajcrowe/polkadot