From da323f65def7058d7a4f031017c392aefc951c92 Mon Sep 17 00:00:00 2001 From: Tom Beynon Date: Thu, 23 Jan 2025 09:38:33 +0000 Subject: [PATCH] Add Coreum (#973) * Add Coreum * Add Coreum to README --- README.md | 1 + coreum/README.md | 37 ++++++++++++++++++++++++++++ coreum/build.yml | 18 ++++++++++++++ coreum/deploy.yml | 52 +++++++++++++++++++++++++++++++++++++++ coreum/docker-compose.yml | 14 +++++++++++ 5 files changed, 122 insertions(+) create mode 100644 coreum/README.md create mode 100644 coreum/build.yml create mode 100644 coreum/deploy.yml create mode 100644 coreum/docker-compose.yml diff --git a/README.md b/README.md index 9f0d27852..bf1148cd8 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ tagged with the form `$COSMOS_OMNIBUS_VERSION-$PROJECT-$PROJECT_VERSION`. |[cheqd](https://github.com/cheqd/cheqd-node)|`0.6.9`|`ghcr.io/akash-network/cosmos-omnibus:v1.1.3-cheqd-0.6.9`|[Example](./cheqd)| |[chihuahua](https://github.com/ChihuahuaChain/chihuahua)|`v8.0.2`|`ghcr.io/akash-network/cosmos-omnibus:v1.1.3-chihuahua-v8.0.2`|[Example](./chihuahua)| |[comdex](https://github.com/comdex-official/comdex)|`v14.1.0`|`ghcr.io/akash-network/cosmos-omnibus:v1.1.3-comdex-v14.1.0`|[Example](./comdex)| +|[coreum](https://github.com/CoreumFoundation/coreum)|`v4.1.2`|`ghcr.io/akash-network/cosmos-omnibus:v1.1.3-coreum-v4.1.2`|[Example](./coreum)| |[cosmoshub](https://github.com/cosmos/gaia)|`v21.0.1`|`ghcr.io/akash-network/cosmos-omnibus:v1.1.3-cosmoshub-v21.0.1`|[Example](./cosmoshub)| |[crescent](https://github.com/crescent-network/crescent)|`v4.2.0`|`ghcr.io/akash-network/cosmos-omnibus:v1.1.3-crescent-v4.2.0`|[Example](./crescent)| |[cronos](https://github.com/crypto-org-chain/cronos)|`v1.4.0`|`ghcr.io/akash-network/cosmos-omnibus:v1.1.3-cronos-v1.4.0`|[Example](./cronos)| diff --git a/coreum/README.md b/coreum/README.md new file mode 100644 index 000000000..b204f3c9b --- /dev/null +++ b/coreum/README.md @@ -0,0 +1,37 @@ +# Coreum + +| | | +|---|---| +|Version|`v4.1.2`| +|Binary|`cored`| +|Directory|`.core/coreum-mainnet-1`| +|ENV namespace|`CORED`| +|Repository|`https://github.com/CoreumFoundation/coreum`| +|Image|`ghcr.io/akash-network/cosmos-omnibus:v1.1.3-coreum-v4.1.2`| + +## Examples + +- Run on Akash with the [example deploy.yml](./deploy.yml) +- Run with Docker using the [example docker-compose.yml](./docker-compose.yml) + +## Chain information + +The [Cosmos Chain Registry](https://github.com/cosmos/chain-registry) publishes [up to date chain info](https://raw.githubusercontent.com/cosmos/chain-registry/master/coreum/chain.json) for Coreum. + +This will be used automatically unless overridden with the `CHAIN_JSON` variable (use `0` to disable). + +## Polkachu Chain Services + +[Polkachu's Chain Services](https://www.polkachu.com/) make bootstrapping a node extremely easy. They provide live peers, seeds, statesync, addrbooks and pruned snapshots among other features. + +The following configuration is available for Coreum nodes. [See the documentation](../README.md#polkachu-services) for more information. + +|Variable|Value| +|---|---| +|`P2P_POLKACHU`|`1`| +|`P2P_SEEDS_POLKACHU`|`1`| +|`P2P_PEERS_POLKACHU`|`1`| +|`STATESYNC_POLKACHU`|`1`| +|`ADDRBOOK_POLKACHU`|`1`| + +Polkachu also provide pruned snapshots for Coreum. Find the [latest snapshot](https://polkachu.com/tendermint_snapshots/akash) and apply it using the `SNAPSHOT_URL` variable. diff --git a/coreum/build.yml b/coreum/build.yml new file mode 100644 index 000000000..1928afdcd --- /dev/null +++ b/coreum/build.yml @@ -0,0 +1,18 @@ +services: + node: + build: + context: ../ + args: + PROJECT: coreum + PROJECT_BIN: cored + PROJECT_DIR: .core/coreum-mainnet-1 + REPOSITORY: https://github.com/CoreumFoundation/coreum + VERSION: v4.1.2 + BUILD_METHOD: binary + BINARY_URL: https://github.com/CoreumFoundation/coreum/releases/download/v4.1.2/cored-linux-amd64 + ports: + - '26656:26656' + - '26657:26657' + - '1317:1317' + volumes: + - ./node-data:/root/.core/coreum-mainnet-1 diff --git a/coreum/deploy.yml b/coreum/deploy.yml new file mode 100644 index 000000000..9733fae54 --- /dev/null +++ b/coreum/deploy.yml @@ -0,0 +1,52 @@ +--- +version: "2.0" +services: + node: + image: ghcr.io/akash-network/cosmos-omnibus:v1.1.3-coreum-v4.1.2 + env: + - MONIKER=Cosmos Omnibus Node + - P2P_POLKACHU=1 + - STATESYNC_POLKACHU=1 + - ADDRBOOK_POLKACHU=1 + expose: + - port: 26657 + to: + - global: true + - port: 26656 + to: + - global: true + params: # remove for non-persistent storage + storage: + data: + mount: /root/.core/coreum-mainnet-1 +profiles: + compute: + node: + resources: + cpu: + units: 4 + memory: + size: 32Gi + storage: + - size: 10Gi + - name: data # remove for non-persistent storage + size: 400Gi + attributes: + persistent: true + class: beta3 + placement: + dcloud: + attributes: + host: akash + signedBy: + anyOf: + - akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63 + pricing: + node: + denom: uakt + amount: 1000 +deployment: + node: + dcloud: + profile: node + count: 1 diff --git a/coreum/docker-compose.yml b/coreum/docker-compose.yml new file mode 100644 index 000000000..6845f2c5d --- /dev/null +++ b/coreum/docker-compose.yml @@ -0,0 +1,14 @@ +services: + node: + image: ghcr.io/akash-network/cosmos-omnibus:v1.1.3-coreum-v4.1.2 + ports: + - '26656:26656' + - '26657:26657' + - '1317:1317' + environment: + - MONIKER=Cosmos Omnibus Node + - P2P_POLKACHU=1 + - STATESYNC_POLKACHU=1 + - ADDRBOOK_POLKACHU=1 + volumes: + - ./node-data:/root/.core/coreum-mainnet-1