Skip to content

Commit

Permalink
Chia Update (akash-network#320)
Browse files Browse the repository at this point in the history
* Add REMOTE_LOCATION= variable

* Fix up quotes

* Bump version

* Update to new version

* Bump version

* Add support for local plotting and download links

* Add file manager to REMOTE_LOCATION=local

* Add delete

* Add bladebit tested with persistent stoage

* Bigger limits

* Thread count fix

* Thread count

* Use default 10 threads if none specified

* Cleanup documentation

* Update log instructions

* Fix attribute usage

* -Fixes madmax error with TMPDIR not being set properly
-Uses imagePullPolicy: Always now in deployment manifest to ensure latest version, no more version numbers required.

* Remove imagePullPolicy from SDL

* Add signedBy and version

* Update README

* Max 7 plots

* Fix ssh check on upload and limit max plots

SSH Upload check fixed
Max 7 plots in 1Tb container

* Fixes runtime error with python3.9

* Upload background

* Multi threaded uploading now enabled

* Upload background and new deployment size

* Fix up indentation

* Fixes compile issue

* rclone support

* Background rclone move

* Supports TOTAL_UPLOADS and TOTAL_PLOTS

* Support for JSON server

* rclone tested

* Logging fix

* Add curl timeout

* Remove no destination check

* Cleanup formatting

* Fix CHECK_PLOTS loop

* Add configs and benchmarks

* Formatting

* Add support for Summer Sale

* Cleanup for version 200

* Fix small bug in review

* Delete npm-debug.log

Dangler...

* Delete npm-debug.log

Dangler...

* Updated Alpha dirs

* Fix SSH upload

* Revert "Fix SSH upload"

This reverts commit 6be8478.

* Cleanup rclone commands

* Update curl timeouts for API

* Better curl error handling

retry-all-errors

* Cleanup api calls

More efficient
Add support for madmax-ramdrive (128gb deployment size)

* Make ramdrive folder

* Add support for public rclone shuffle directory and endpoints

* Shuffle fixes

* Add support for Gdrive

* TOTAL_PLOTS now works

* TOTAL_PLOTS fix

* Seperate Chia plotters - 

Creates : 
chia-bladebit
chia-bladebit-disk
chia-madmax

Best settings for each plotter in deploy.yaml / makes for easier first time experience.
Remove "chia" folder 
Updated README's for each plotter
Bladebit Disk 2.0 Support

* Remove original Chia folder

* Updated pricing

* Minor fixes / README updates

* Use Ubuntu 22.04

* Bring image up to date

* Bump version to 262

- Update to latest Chia
- Make rsync uploads more resilient

Co-authored-by: Crypto and Coffee <null@cryptoandcoffee.com>
Co-authored-by: Andrew <andrew@cryptoandcoffee.com>
  • Loading branch information
3 people authored Sep 12, 2022
1 parent 5a0a683 commit 48adda5
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 12 deletions.
4 changes: 2 additions & 2 deletions chia-bladebit-disk/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "2.0"

services:
chia:
image: cryptoandcoffee/akash-chia:254
image: cryptoandcoffee/akash-chia:262
expose:
- port: 8080
as: 80
Expand All @@ -12,7 +12,7 @@ services:
- global: true
env:
#############################REQUIRED##############################
- VERSION=1.5.0
- VERSION=1.5.1
#Always check https://github.com/Chia-Network/chia-blockchain/releases
- CONTRACT=
- FARMERKEY=
Expand Down
15 changes: 13 additions & 2 deletions chia-bladebit-disk/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,19 @@ else
chia init
fi

if [[ "$UPLOAD_BACKGROUND" == "true" && "$FINAL_LOCATION" != "local" && "$RCLONE" == "false" ]]; then
screen -dmS sync bash ./sync.sh

if [[ "${UPLOAD_BACKGROUND}" == "true" && "${FINAL_LOCATION}" != "local" && "${RCLONE}" == "false" ]]; then

echo "Starting rsync in background and logging to rsync_log.log..."
screen -dmS rsync bash /sync.sh
screen -ls
if ! screen -list | grep -q "rsync"; then
echo "rsync is not running!"
sleep 60
exit
fi


fi

if [[ $PLOTTER == "madmax-ramdrive" ]]; then
Expand Down
2 changes: 2 additions & 0 deletions chia-bladebit-disk/sync.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash
export SSHPASS=${REMOTE_PASS}
echo "Check this every 15 seconds"
for (( ; ; )); do

Expand Down
4 changes: 2 additions & 2 deletions chia-bladebit/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "2.0"

services:
chia:
image: cryptoandcoffee/akash-chia:254
image: cryptoandcoffee/akash-chia:262
expose:
- port: 8080
as: 80
Expand All @@ -12,7 +12,7 @@ services:
- global: true
env:
#############################REQUIRED##############################
- VERSION=1.5.0
- VERSION=1.5.1
#Always check https://github.com/Chia-Network/chia-blockchain/releases
- CONTRACT=
- FARMERKEY=
Expand Down
15 changes: 13 additions & 2 deletions chia-bladebit/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,19 @@ else
chia init
fi

if [[ "$UPLOAD_BACKGROUND" == "true" && "$FINAL_LOCATION" != "local" && "$RCLONE" == "false" ]]; then
screen -dmS sync bash ./sync.sh

if [[ "${UPLOAD_BACKGROUND}" == "true" && "${FINAL_LOCATION}" != "local" && "${RCLONE}" == "false" ]]; then

echo "Starting rsync in background and logging to rsync_log.log..."
screen -dmS rsync bash /sync.sh
screen -ls
if ! screen -list | grep -q "rsync"; then
echo "rsync is not running!"
sleep 60
exit
fi


fi

if [[ $PLOTTER == "madmax-ramdrive" ]]; then
Expand Down
2 changes: 2 additions & 0 deletions chia-bladebit/sync.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash
export SSHPASS=${REMOTE_PASS}
echo "Check this every 15 seconds"
for (( ; ; )); do

Expand Down
4 changes: 2 additions & 2 deletions chia-madmax/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "2.0"

services:
chia:
image: cryptoandcoffee/akash-chia:254
image: cryptoandcoffee/akash-chia:262
expose:
- port: 8080
as: 80
Expand All @@ -12,7 +12,7 @@ services:
- global: true
env:
#############################REQUIRED##############################
- VERSION=1.5.0
- VERSION=1.5.1
#Always check https://github.com/Chia-Network/chia-blockchain/releases
- CONTRACT=
- FARMERKEY=
Expand Down
15 changes: 13 additions & 2 deletions chia-madmax/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,19 @@ else
chia init
fi

if [[ "$UPLOAD_BACKGROUND" == "true" && "$FINAL_LOCATION" != "local" && "$RCLONE" == "false" ]]; then
screen -dmS sync bash ./sync.sh

if [[ "${UPLOAD_BACKGROUND}" == "true" && "${FINAL_LOCATION}" != "local" && "${RCLONE}" == "false" ]]; then

echo "Starting rsync in background and logging to rsync_log.log..."
screen -dmS rsync bash /sync.sh
screen -ls
if ! screen -list | grep -q "rsync"; then
echo "rsync is not running!"
sleep 60
exit
fi


fi

if [[ $PLOTTER == "madmax-ramdrive" ]]; then
Expand Down
2 changes: 2 additions & 0 deletions chia-madmax/sync.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash
export SSHPASS=${REMOTE_PASS}
echo "Check this every 15 seconds"
for (( ; ; )); do

Expand Down

0 comments on commit 48adda5

Please sign in to comment.