Skip to content

Commit

Permalink
Add Coreum
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon committed Jan 22, 2025
1 parent 5f9f7c1 commit 2ed7e42
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 0 deletions.
37 changes: 37 additions & 0 deletions coreum/README.md
Original file line number Diff line number Diff line change
@@ -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.
18 changes: 18 additions & 0 deletions coreum/build.yml
Original file line number Diff line number Diff line change
@@ -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
52 changes: 52 additions & 0 deletions coreum/deploy.yml
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions coreum/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2ed7e42

Please sign in to comment.