Skip to content

Commit

Permalink
Noble Network Support (#833)
Browse files Browse the repository at this point in the history
* feat: Add noble chain

* style: fix indentation

* update cosmos omnibus version

Co-authored-by: Tom Beynon <[email protected]>

---------

Co-authored-by: Tom Beynon <[email protected]>
  • Loading branch information
PoolPirate and tombeynon committed Jul 17, 2024
1 parent dcdb98e commit eed19fc
Show file tree
Hide file tree
Showing 6 changed files with 137 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ jobs:
version: v3.0.2
- project: neutron
version: v4.0.1
- project: noble
version: v5.0.0
- project: nois
version: v1.0.5
- project: omniflixhub
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ tagged with the form `$COSMOS_OMNIBUS_VERSION-$PROJECT-$PROJECT_VERSION`.
|[mars](https://github.com/mars-protocol/hub.git)|`v1.0.2`|`ghcr.io/akash-network/cosmos-omnibus:v0.4.20-mars-v1.0.2`|[Example](./mars)|
|[migaloo](https://github.com/White-Whale-Defi-Platform/migaloo-chain)|`v3.0.2`|`ghcr.io/akash-network/cosmos-omnibus:v0.4.20-migaloo-v3.0.2`|[Example](./migaloo)|
|[neutron](https://github.com/neutron-org/neutron)|`v4.0.1`|`ghcr.io/akash-network/cosmos-omnibus:v0.4.20-neutron-v4.0.1`|[Example](./neutron)|
|[noble](https://github.com/noble-assets/noble)|`v5.0.0`|`ghcr.io/akash-network/cosmos-omnibus:v0.4.20-noble-v5.0.0`|[Example](./noble)|
|[nois](https://github.com/noislabs/noisd)|`v1.0.5`|`ghcr.io/akash-network/cosmos-omnibus:v0.4.20-nois-v1.0.5`|[Example](./nois)|
|[omniflixhub](https://github.com/OmniFlix/omniflixhub)|`v4.1.1`|`ghcr.io/akash-network/cosmos-omnibus:v0.4.20-omniflixhub-v4.1.1`|[Example](./omniflixhub)|
|[osmosis](https://github.com/osmosis-labs/osmosis)|`v25.1.1`|`ghcr.io/akash-network/cosmos-omnibus:v0.4.20-osmosis-v25.1.1`|[Example](./osmosis)|
Expand Down
26 changes: 26 additions & 0 deletions noble/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Noble

| | |
|---|---|
|Version|`v5.0.0`|
|Binary|`nobled`|
|Directory|`.noble`|
|ENV namespace|`NOBLED`|
|Repository|`https://github.com/noble-assets/noble`|
|Image|`ghcr.io/akash-network/cosmos-omnibus:v0.4.20-noble-v5.0.0`|

## Examples

- Run on Akash with the [example deploy.yml](./deploy.yml)
- Run locally using the [example docker-compose.yml](./docker-compose.yml)

## Polkachu Chain Services

[Polkachu's Chain Services](https://www.polkachu.com/) make bootstrapping a node extremely easy. They provide live peers, statesync and pruned snapshots.

Note you should choose between statesync and snapshot bootstrapping, snapshot will take precedence.

|Variable|Value|
|---|---|
|`P2P_POLKACHU`|`1`|
|`STATESYNC_POLKACHU`|`1`|
25 changes: 25 additions & 0 deletions noble/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: '3.4'

services:
node_1:
build:
context: ../
args:
PROJECT: noble
PROJECT_BIN: nobled
PROJECT_DIR: .noble
VERSION: v5.0.0
REPOSITORY: https://github.com/noble-assets/noble.git
GOLANG_VERSION: 1.19-buster
NAMESPACE: NOBLED
ports:
- '21556:26656'
- '21557:26657'
- '21590:9090'
environment:
- MONIKER=node_1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/master/noble/chain.json
env_file:
- ../.env
volumes:
- ./node-data:/root/.noble
63 changes: 63 additions & 0 deletions noble/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
version: "2.0"

services:
node:
image: ghcr.io/akash-network/cosmos-omnibus:v0.4.20-noble-v5.0.0
env:
- MONIKER=node_1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/master/noble/chain.json
- P2P_POLKACHU=1
- STATESYNC_POLKACHU=1
#- SNAPSHOT_WASM_PATH=wasm
## Make sure to set SNAPSHOT_DATA_PATH=data when using snapshots with the directory structure // TODO: https://github.com/akash-network/cosmos-omnibus/issues/378
# - SNAPSHOT_URL=https://snapshots.polkachu.com/snapshots/noble/noble_8268809.tar.lz4
# - SNAPSHOT_DATA_PATH=data
expose:
- port: 26656
to:
- global: true
- port: 26657
as: 80
to:
- global: true
- port: 1317
to:
- global: true
# params:
# storage:
# data:
# mount: /root/.noble

profiles:
compute:
node:
resources:
cpu:
units: 4
memory:
size: 8Gi
storage:
size: 100Gi
# - size: 100Mi
# - name: data
# size: 400Gi
# attributes:
# persistent: true
placement:
dcloud:
attributes:
host: akash
signedBy:
anyOf:
- akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63
pricing:
node:
denom: uakt
amount: 1000

deployment:
node:
dcloud:
profile: node
count: 1
20 changes: 20 additions & 0 deletions noble/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: '3.4'

services:
node_1:
image: ghcr.io/akash-network/cosmos-omnibus:v0.4.20-noble-v5.0.0
ports:
- '26656:26656'
- '26657:26657'
- '1317:1317'
environment:
- MONIKER=node_1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/master/noble/chain.json
- P2P_POLKACHU=1
- STATESYNC_POLKACHU=1
#- SNAPSHOT_WASM_PATH=wasm
## Make sure to set SNAPSHOT_DATA_PATH=data when using snapshots with the directory structure // TODO: https://github.com/akash-network/cosmos-omnibus/issues/378
# - SNAPSHOT_URL=https://snapshots.polkachu.com/snapshots/noble/noble_8268809.tar.lz4
# - SNAPSHOT_DATA_PATH=data
volumes:
- ./node-data:/root/.noble

0 comments on commit eed19fc

Please sign in to comment.