From 96315291b368692c9d561d90c6acec9da7f76119 Mon Sep 17 00:00:00 2001 From: Playwo <94938310+PoolPirate@users.noreply.github.com> Date: Mon, 15 Jul 2024 17:09:40 +0200 Subject: [PATCH 1/3] feat: Add noble chain --- .github/workflows/publish.yml | 2 ++ README.md | 1 + noble/README.md | 26 +++++++++++++++ noble/build.yml | 25 ++++++++++++++ noble/deploy.yml | 63 +++++++++++++++++++++++++++++++++++ noble/docker-compose.yml | 20 +++++++++++ 6 files changed, 137 insertions(+) create mode 100644 noble/README.md create mode 100644 noble/build.yml create mode 100644 noble/deploy.yml create mode 100644 noble/docker-compose.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0b15a4330..5f08a7f4f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -108,6 +108,8 @@ jobs: version: v3.0.2 - project: neutron version: v3.0.6 + - project: noble + version: v5.0.0 - project: nois version: v1.0.5 - project: omniflixhub diff --git a/README.md b/README.md index 1ad204159..5f7476bcb 100644 --- a/README.md +++ b/README.md @@ -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)|`v3.0.6`|`ghcr.io/akash-network/cosmos-omnibus:v0.4.20-neutron-v3.0.6`|[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.0.0`|`ghcr.io/akash-network/cosmos-omnibus:v0.4.20-omniflixhub-v4.0.0`|[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)| diff --git a/noble/README.md b/noble/README.md new file mode 100644 index 000000000..b593392ce --- /dev/null +++ b/noble/README.md @@ -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.8-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`| diff --git a/noble/build.yml b/noble/build.yml new file mode 100644 index 000000000..ba82ed775 --- /dev/null +++ b/noble/build.yml @@ -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 \ No newline at end of file diff --git a/noble/deploy.yml b/noble/deploy.yml new file mode 100644 index 000000000..db3a6ddcd --- /dev/null +++ b/noble/deploy.yml @@ -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 diff --git a/noble/docker-compose.yml b/noble/docker-compose.yml new file mode 100644 index 000000000..6d5710f05 --- /dev/null +++ b/noble/docker-compose.yml @@ -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 From 9cf8827d2af5566ce1276569fb236ae965f57120 Mon Sep 17 00:00:00 2001 From: Playwo <94938310+PoolPirate@users.noreply.github.com> Date: Mon, 15 Jul 2024 17:12:00 +0200 Subject: [PATCH 2/3] style: fix indentation --- noble/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noble/docker-compose.yml b/noble/docker-compose.yml index 6d5710f05..b19ef7bf8 100644 --- a/noble/docker-compose.yml +++ b/noble/docker-compose.yml @@ -10,7 +10,7 @@ services: environment: - MONIKER=node_1 - CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/master/noble/chain.json - - P2P_POLKACHU=1 + - 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 From 6b63b9056e6a3f005e25497d1552c9a88564a7ab Mon Sep 17 00:00:00 2001 From: Playwo <94938310+PoolPirate@users.noreply.github.com> Date: Wed, 17 Jul 2024 13:28:41 +0200 Subject: [PATCH 3/3] update cosmos omnibus version Co-authored-by: Tom Beynon --- noble/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noble/README.md b/noble/README.md index b593392ce..2b0877273 100644 --- a/noble/README.md +++ b/noble/README.md @@ -7,7 +7,7 @@ |Directory|`.noble`| |ENV namespace|`NOBLED`| |Repository|`https://github.com/noble-assets/noble`| -|Image|`ghcr.io/akash-network/cosmos-omnibus:v0.4.8-noble-v5.0.0`| +|Image|`ghcr.io/akash-network/cosmos-omnibus:v0.4.20-noble-v5.0.0`| ## Examples