Skip to content

Commit

Permalink
Add bladebit install script
Browse files Browse the repository at this point in the history
  • Loading branch information
Starttoaster committed Aug 29, 2023
1 parent 04e280d commit f46492b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,18 @@ else
yq -i '.harvester.use_gpu_harvesting = False' "$CHIA_ROOT/config/config.yaml"
fi

# Install plotters (bladebit)
if [[ -n "$install_bladebit" && "$install_bladebit" == 'true' ]]; then
DEBIAN_FRONTEND=noninteractive apt update
DEBIAN_FRONTEND=noninteractive apt install -y build-essential cmake libgmp-dev libnuma-dev git
cd / || exit 1
git clone https://github.com/Chia-Network/bladebit.git && cd bladebit
mkdir -p build && cd build
cmake ..
cmake --build . --target bladebit --config Release
cd /chia-blockchain || exit 1
fi

# Map deprecated legacy startup options.
if [[ ${farmer} == "true" ]]; then
service="farmer-only"
Expand Down

0 comments on commit f46492b

Please sign in to comment.