Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folding@home on akash #274

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions banano/Readme.md
Original file line number Diff line number Diff line change
@@ -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
40 changes: 40 additions & 0 deletions banano/deploy.yaml
Original file line number Diff line number Diff line change
@@ -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
40 changes: 40 additions & 0 deletions foldingathome/Deploy.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions foldingathome/Readme.md
Original file line number Diff line number Diff line change
@@ -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.