From 29dda225b447cf9bb87ace1ad1252e28186dcdbe Mon Sep 17 00:00:00 2001 From: Pramono Utomo Date: Wed, 16 Mar 2022 14:00:56 +0700 Subject: [PATCH 1/4] Add Banano Node Mainnet SDL file + Readme/Example Docs to use RPC to the node --- banano/Readme.md | 41 +++++++++++++++++++++++++++++++++++++++++ banano/deploy.yaml | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 banano/Readme.md create mode 100644 banano/deploy.yaml diff --git a/banano/Readme.md b/banano/Readme.md new file mode 100644 index 00000000..e4ac5768 --- /dev/null +++ b/banano/Readme.md @@ -0,0 +1,41 @@ +# Banano Mainnet Deployer on Akash +This image will deploy Banano node on Mainnet. + +# Verify Node Active +Assuming your akash provider forwarded port for `:7072` is `:30944` and the provider url is `provider.edgenet-3.ca.aksh.pw` + +```shell +curl -g -d '{ "action": "version"}' 'http://provider.edgenet-3.ca.aksh.pw:30944' +``` + +Output: +```json +{ + "rpc_version": "1", + "store_version": "21", + "protocol_version": "18", + "node_vendor": "Banano V23.0", + "store_vendor": "LMDB 0.9.25", + "network": "live", + "network_identifier": "F61A79F286ABC5CC01D3D09686F0567812B889A5C63ADE0E82DD30F3B2D96463", + "build_info": "9b744fe8 \"GNU C++ version \" \"7.5.0\" \"BOOST 107000\" BUILT \"Feb 16 2022\"" +} +``` + +# Check Node Block Count +Assuming your akash provider forwarded port for `:7072` is `:30944` and the provider url is `provider.edgenet-3.ca.aksh.pw` + +```shell +curl -g -d '{ "action": "block_count"}' 'http://provider.edgenet-3.ca.aksh.pw:30944' +``` + +Sample Output: +```json +{ + "count": "1", + "unchecked": "4694309", + "cemented": "1" +} + + +# More RPC available on : https://docs.nano.org/commands/rpc-protocol/ (Banano is a NANO/XNO fork, so the RPC are same.) \ No newline at end of file diff --git a/banano/deploy.yaml b/banano/deploy.yaml new file mode 100644 index 00000000..47ed6800 --- /dev/null +++ b/banano/deploy.yaml @@ -0,0 +1,40 @@ +--- +version: "2.0" + +services: + banano: + image: bananocoin/banano:latest + expose: + - port: 7071 + as: 7071 + to: + - global: true + - port: 7072 + as: 7072 + to: + - global: true + - port: 7074 + as: 7074 + to: + - global: true +profiles: + compute: + banano-profile: + resources: + cpu: + units: 2.0 + memory: + size: 2Gi + storage: + size: 64Gi + placement: + westcoast: + pricing: + banano-profile: + denom: uakt + amount: 1000 +deployment: + banano: + westcoast: + profile: banano-profile + count: 1 \ No newline at end of file From ebcbcaace946538a60529204d61fd7d212ac3aa8 Mon Sep 17 00:00:00 2001 From: Pramono Utomo Date: Wed, 16 Mar 2022 14:05:37 +0700 Subject: [PATCH 2/4] Revert "Add Banano Node Mainnet" This reverts commit 29dda225b447cf9bb87ace1ad1252e28186dcdbe. --- banano/Readme.md | 41 ----------------------------------------- banano/deploy.yaml | 40 ---------------------------------------- 2 files changed, 81 deletions(-) delete mode 100644 banano/Readme.md delete mode 100644 banano/deploy.yaml diff --git a/banano/Readme.md b/banano/Readme.md deleted file mode 100644 index e4ac5768..00000000 --- a/banano/Readme.md +++ /dev/null @@ -1,41 +0,0 @@ -# Banano Mainnet Deployer on Akash -This image will deploy Banano node on Mainnet. - -# Verify Node Active -Assuming your akash provider forwarded port for `:7072` is `:30944` and the provider url is `provider.edgenet-3.ca.aksh.pw` - -```shell -curl -g -d '{ "action": "version"}' 'http://provider.edgenet-3.ca.aksh.pw:30944' -``` - -Output: -```json -{ - "rpc_version": "1", - "store_version": "21", - "protocol_version": "18", - "node_vendor": "Banano V23.0", - "store_vendor": "LMDB 0.9.25", - "network": "live", - "network_identifier": "F61A79F286ABC5CC01D3D09686F0567812B889A5C63ADE0E82DD30F3B2D96463", - "build_info": "9b744fe8 \"GNU C++ version \" \"7.5.0\" \"BOOST 107000\" BUILT \"Feb 16 2022\"" -} -``` - -# Check Node Block Count -Assuming your akash provider forwarded port for `:7072` is `:30944` and the provider url is `provider.edgenet-3.ca.aksh.pw` - -```shell -curl -g -d '{ "action": "block_count"}' 'http://provider.edgenet-3.ca.aksh.pw:30944' -``` - -Sample Output: -```json -{ - "count": "1", - "unchecked": "4694309", - "cemented": "1" -} - - -# More RPC available on : https://docs.nano.org/commands/rpc-protocol/ (Banano is a NANO/XNO fork, so the RPC are same.) \ No newline at end of file diff --git a/banano/deploy.yaml b/banano/deploy.yaml deleted file mode 100644 index 47ed6800..00000000 --- a/banano/deploy.yaml +++ /dev/null @@ -1,40 +0,0 @@ ---- -version: "2.0" - -services: - banano: - image: bananocoin/banano:latest - expose: - - port: 7071 - as: 7071 - to: - - global: true - - port: 7072 - as: 7072 - to: - - global: true - - port: 7074 - as: 7074 - to: - - global: true -profiles: - compute: - banano-profile: - resources: - cpu: - units: 2.0 - memory: - size: 2Gi - storage: - size: 64Gi - placement: - westcoast: - pricing: - banano-profile: - denom: uakt - amount: 1000 -deployment: - banano: - westcoast: - profile: banano-profile - count: 1 \ No newline at end of file From db1fd4a8c5cab1fd797401477618471f4d4dd684 Mon Sep 17 00:00:00 2001 From: Pramono Utomo Date: Wed, 16 Mar 2022 14:38:42 +0700 Subject: [PATCH 3/4] update file --- banano/Readme.md | 42 ++++++++++++++++++++++++++++++++++++++++++ banano/deploy.yaml | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 banano/Readme.md create mode 100644 banano/deploy.yaml diff --git a/banano/Readme.md b/banano/Readme.md new file mode 100644 index 00000000..68f9e93b --- /dev/null +++ b/banano/Readme.md @@ -0,0 +1,42 @@ +# Banano Mainnet Deployer on Akash +This image will deploy Banano node on Mainnet. + +# Verify Node Active +Assuming your akash provider forwarded port for `:7072` is `:30944` and the provider url is `provider.edgenet-3.ca.aksh.pw` + +```shell +curl -g -d '{ "action": "version"}' 'http://provider.edgenet-3.ca.aksh.pw:30944' +``` + +Output: +```json +{ + "rpc_version": "1", + "store_version": "21", + "protocol_version": "18", + "node_vendor": "Banano V23.0", + "store_vendor": "LMDB 0.9.25", + "network": "live", + "network_identifier": "F61A79F286ABC5CC01D3D09686F0567812B889A5C63ADE0E82DD30F3B2D96463", + "build_info": "9b744fe8 \"GNU C++ version \" \"7.5.0\" \"BOOST 107000\" BUILT \"Feb 16 2022\"" +} +``` + +# Check Node Block Count +Assuming your akash provider forwarded port for `:7072` is `:30944` and the provider url is `provider.edgenet-3.ca.aksh.pw` + +```shell +curl -g -d '{ "action": "block_count"}' 'http://provider.edgenet-3.ca.aksh.pw:30944' +``` + +Sample Output: +```json +{ + "count": "1", + "unchecked": "4694309", + "cemented": "1" +} + + +# More RPC available on : https://docs.nano.org/commands/rpc-protocol/ (Banano is a NANO/XNO fork, so the RPC are same.) +# There is same for NANO, BANANO and PAW \ No newline at end of file diff --git a/banano/deploy.yaml b/banano/deploy.yaml new file mode 100644 index 00000000..c90c152b --- /dev/null +++ b/banano/deploy.yaml @@ -0,0 +1,40 @@ +--- +version: "2.0" + +services: + banano: + image: bananocoin/banano:latest + expose: + - port: 7071 + as: 7071 + to: + - global: true + - port: 7072 + as: 7072 + to: + - global: true + - port: 7074 + as: 7074 + to: + - global: true +profiles: + compute: + banano-profile: + resources: + cpu: + units: 2.0 + memory: + size: 2Gi + storage: + size: 32Gi + placement: + westcoast: + pricing: + banano-profile: + denom: uakt + amount: 1000 +deployment: + banano: + westcoast: + profile: banano-profile + count: 1 \ No newline at end of file From cff4c93ed8dcf8ee2950e224b426114b7718a32b Mon Sep 17 00:00:00 2001 From: Pramono Utomo Date: Sun, 20 Mar 2022 00:59:27 +0700 Subject: [PATCH 4/4] folding@home on akash Run F@H client on akash. --- foldingathome/Deploy.yaml | 40 +++++++++++++++++++++++++++++++++++++++ foldingathome/Readme.md | 2 ++ 2 files changed, 42 insertions(+) create mode 100644 foldingathome/Deploy.yaml create mode 100644 foldingathome/Readme.md diff --git a/foldingathome/Deploy.yaml b/foldingathome/Deploy.yaml new file mode 100644 index 00000000..631e0800 --- /dev/null +++ b/foldingathome/Deploy.yaml @@ -0,0 +1,40 @@ +--- +version: "2.0" + +services: + foldingathome: + image: linuxserver/foldingathome + expose: + - port: 7396 + as: 7396 + to: + - global: true + - port: 36330 + as: 36330 + to: + - global: true + +profiles: + compute: + foldingathome-profile: + resources: + cpu: + units: 32.0 + memory: + size: 32Gi + storage: + size: 64Gi + attributes: + persistent: true + class: beta3 + placement: + westcoast: + pricing: + foldingathome-profile: + denom: uakt + amount: 1000.1 +deployment: + foldingathome: + westcoast: + profile: foldingathome-profile + count: 1 \ No newline at end of file diff --git a/foldingathome/Readme.md b/foldingathome/Readme.md new file mode 100644 index 00000000..7745c031 --- /dev/null +++ b/foldingathome/Readme.md @@ -0,0 +1,2 @@ +Change the resource as you need :) only high CPU unit could be used, memory and storage are not needed to be so big. +