Skip to content

Commit

Permalink
Merge branch 'master' into default-moniker-variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon authored Nov 19, 2024
2 parents a76114f + ddfcbbf commit a4d0f34
Show file tree
Hide file tree
Showing 12 changed files with 154 additions and 41 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ ARG INIT_CMD
ARG VERSION
ARG REPOSITORY
ARG NAMESPACE
ARG POLKACHU_CHAIN_ID

ENV PROJECT=$PROJECT
ENV PROJECT_BIN=$PROJECT_BIN
Expand All @@ -192,6 +193,7 @@ ENV INIT_CMD=$INIT_CMD
ENV VERSION=$VERSION
ENV REPOSITORY=$REPOSITORY
ENV NAMESPACE=$NAMESPACE
ENV POLKACHU_CHAIN_ID=$POLKACHU_CHAIN_ID

EXPOSE 26656 \
26657 \
Expand Down
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ The omnibus images allow some specific variables and shortcuts to configure extr

### Chain configuration

Chain config can be sourced from a `chain.json` file [as seen in the Cosmos Chain Registry](https://github.com/cosmos/chain-registry).
Chain config can be sourced from a `chain.json` file [as seen in the Cosmos Chain Registry](https://github.com/cosmos/chain-registry). The [Chain Registry](https://github.com/cosmos/chain-registry) will be used automatically for all pre-built images, or whenever the `PROJECT` environment variable matches a [Chain Registry](https://github.com/cosmos/chain-registry) ID. Set `CHAIN_JSON` to an alternative URL if required, or `0` to disable this behaviour entirely.

|Variable|Description|Default|Examples|
|---|---|---|---|
Expand All @@ -184,15 +184,15 @@ Chain config can be sourced from a `chain.json` file [as seen in the Cosmos Chai
Peer information can be provided manually, or obtained automatically from the following sources:

- `CHAIN_JSON` URL with peer information included.
- [Polkachu's live peers](https://www.polkachu.com/live_peers).
- [Polkachu's live seed and peers](#polkachu-services).
- Any `ADDRBOOK_URL` where the `config/addrbook.json` file is hosted.

See [Cosmos docs](https://docs.tendermint.com/master/nodes/configuration.html#p2p-settings) for more information.

|Variable|Description|Default|Examples|
|---|---|---|---|
|`P2P_SEEDS`|Seed nodes. Can be set by CHAIN_JSON or GENESIS_URL| |`id@node:26656`|
|`P2P_PERSISTENT_PEERS`|Persistent peers. Can be set by CHAIN_JSON or GENESIS_URL| |`id@node:26656`|
|`P2P_SEEDS`|Seed nodes. Can be set by CHAIN_JSON| |`id@node:26656`|
|`P2P_PERSISTENT_PEERS`|Persistent peers. Can be set by CHAIN_JSON| |`id@node:26656`|
|`ADDRBOOK_URL`|URL to an addrbook.json file| |`https://quicksync.io/addrbook.terra.json`|

### Private key backup/restore
Expand Down Expand Up @@ -307,9 +307,12 @@ The node binary can be downloaded at runtime when using the [Generic image](#gen

|Variable|Description|Default|Examples|
|---|---|---|---|
|`P2P_POLKACHU`|Import Polkachu's [seed node](https://www.polkachu.com/seeds) and [live peers](https://www.polkachu.com/live_peers) if available| |`1`|
|`P2P_SEEDS_POLKACHU`|Import Polkachu's [seed node](https://www.polkachu.com/seeds) if available| |`1`|
|`P2P_PEERS_POLKACHU`|Import Polkachu's [live peers](https://www.polkachu.com/live_peers) if available| |`1`|
|`STATESYNC_POLKACHU`|Import Polkachu's [statesync addresses](https://www.polkachu.com/state_sync) if available| |`1`|
|`ADDRBOOK_POLKACHU`|Import Polkachu's [addrbook](https://polkachu.com/addrbooks) if available| |`1`|
|`POLKACHU_CHAIN_ID`| Polkachu API chain-id if it differs from Chain Registry naming convention.| |`cryptocom`|
|`P2P_POLKACHU`|Import [Polkachu's](https://www.polkachu.com/seeds) seed node if available| |`1`|
|`STATESYNC_POLKACHU`|Import [Polkachu's](https://www.polkachu.com/state_sync) statesync addresses if available| |`1`|

### Cosmovisor

Expand All @@ -318,7 +321,7 @@ The node binary can be downloaded at runtime when using the [Generic image](#gen
|Variable|Description|Default|Examples|
|---|---|---|---|
|`COSMOVISOR_ENABLED`|Enable Cosmovisor binary download and support| |`1`|
|`COSMOVISOR_VERSION`|Version of Cosmovisor to download|`1.5.0`| |
|`COSMOVISOR_VERSION`|Version of Cosmovisor to download|`1.6.0`| |
|`COSMOVISOR_URL`|Alternative full URL to Cosmovisor binary tar.gz| | |

### Shortcuts
Expand All @@ -331,6 +334,7 @@ See [Cosmos docs](https://docs.tendermint.com/master/nodes/configuration.html) f
|`FASTSYNC_VERSION`|The fastsync version| |`v0`|
|`MINIMUM_GAS_PRICES`|Minimum gas prices| |`0.025uakt`|
|`PRUNING`|How much of the chain to prune| |`nothing`|
|`DOUBLE_SIGN_CHECK_HEIGHT`|Set the double_sign_check_height config| |`10`|
|`DEBUG`|Set to `1` to output all environment variables on boot. Set to `2` to debug shell scripts.| |`1`, `2`|

## Contributing
Expand Down
1 change: 1 addition & 0 deletions bandchain/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
REPOSITORY: https://github.com/bandprotocol/chain
NAMESPACE: BANDD
PROJECT_DIR: .band
POLKACHU_CHAIN_ID: band
ports:
- '26656:26656'
- '26657:26657'
Expand Down
1 change: 1 addition & 0 deletions cosmoshub/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ services:
NAMESPACE: GAIAD
GOLANG_VERSION: 1.22-bullseye
DEBIAN_VERSION: bullseye
POLKACHU_CHAIN_ID: cosmos
ports:
- '26656:26656'
- '26657:26657'
Expand Down
1 change: 1 addition & 0 deletions cryptoorgchain/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
REPOSITORY: https://github.com/crypto-org-chain/chain-main
NAMESPACE: CHAIN_MAIND
GOLANG_VERSION: 1.20-buster
POLKACHU_CHAIN_ID: cryptocom
ports:
- '26656:26656'
- '26657:26657'
Expand Down
1 change: 1 addition & 0 deletions empowerchain/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ services:
PROJECT_DIR: .empowerchain
BUILD_DIR: /data/chain
GOLANG_VERSION: 1.20-buster
POLKACHU_CHAIN_ID: empower
ports:
- '26656:26656'
- '26657:26657'
Expand Down
1 change: 1 addition & 0 deletions fetchhub/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
VERSION: v0.10.6
REPOSITORY: https://github.com/fetchai/fetchd
NAMESPACE: FETCHD
POLKACHU_CHAIN_ID: fetch
ports:
- '26656:26656'
- '26657:26657'
Expand Down
1 change: 1 addition & 0 deletions gravitybridge/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ services:
VERSION: v1.11.1
BUILD_IMAGE: binary
BINARY_URL: https://github.com/Gravity-Bridge/Gravity-Bridge/releases/download/v1.7.2/gravity-linux-amd64
POLKACHU_CHAIN_ID: gravity
ports:
- '26656:26656'
- '26657:26657'
Expand Down
1 change: 1 addition & 0 deletions lumnetwork/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
REPOSITORY: https://github.com/lum-network/chain
NAMESPACE: LUMD
GOLANG_VERSION: 1.19.7-buster
POLKACHU_CHAIN_ID: lum
ports:
- '26656:26656'
- '26657:26657'
Expand Down
1 change: 1 addition & 0 deletions omniflixhub/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ services:
NAMESPACE: OMNIFLIXHUBD
GOLANG_VERSION: 1.22-bullseye
DEBIAN_VERSION: bullseye
POLKACHU_CHAIN_ID: omniflix
ports:
- '26656:26656'
- '26657:26657'
Expand Down
Loading

0 comments on commit a4d0f34

Please sign in to comment.