Skip to content

Commit f0babe7

Browse files
committed
init
0 parents  commit f0babe7

File tree

3 files changed

+107
-0
lines changed

3 files changed

+107
-0
lines changed

.env.example

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# DIR CONFIG
2+
TMP_HARVESTER_DIR=./harvester
3+
FINAL_FARM_DIR=./farm
4+
5+
# HARDWARE CONFIG
6+
CPU_CORE=4
7+
MEMORY_LIMIT=8G
8+
THREAD_COUNT=4 #-r Number of threads (default = 4)
9+
10+
# CHIA CONFIG
11+
POOL_KEY= #-p
12+
FARM_KEY= #-f
13+
NUMBER_OF_PLOTS=1 #-n Number of plots to create (default = 1, -1 = infinite)
14+
15+
# For <poolkey> and <farmerkey> see output of `chia keys show`.
16+
# <tmpdir> needs about 220 GiB space, it will handle about 25% of all writes. (Examples: './', '/mnt/tmp/')
17+
# <tmpdir2> needs about 110 GiB space and ideally is a RAM drive, it will handle about 75% of all writes.
18+
# Combined (tmpdir + tmpdir2) peak disk usage is less than 256 GiB.
19+
# In case of <count> != 1, you may press Ctrl-C for graceful termination after current plot is finished.
20+
21+
# Usage:
22+
# chia_plot [OPTION...]
23+
24+
# -n, --count arg Number of plots to create (default = 1, -1 = infinite)
25+
# -r, --threads arg Number of threads (default = 4)
26+
# -u, --buckets arg Number of buckets (default = 256)
27+
# -t, --tmpdir arg Temporary directory, needs ~220 GiB (default = $PWD)
28+
# -2, --tmpdir2 arg Temporary directory 2, needs ~110 GiB [RAM] (default = <tmpdir>)
29+
# -d, --finaldir arg Final directory (default = <tmpdir>)
30+
# -p, --poolkey arg Pool Public Key (48 bytes)
31+
# -f, --farmerkey arg Farmer Public Key (48 bytes)
32+
# --help Print help

.gitignore

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
2+
3+
# Created by https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,dotenv
4+
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,visualstudiocode,dotenv
5+
6+
### dotenv ###
7+
.env
8+
9+
### VisualStudioCode ###
10+
.vscode/*
11+
!.vscode/settings.json
12+
!.vscode/tasks.json
13+
!.vscode/launch.json
14+
!.vscode/extensions.json
15+
*.code-workspace
16+
17+
### VisualStudioCode Patch ###
18+
# Ignore all local history of files
19+
.history
20+
.ionide
21+
22+
### Windows ###
23+
# Windows thumbnail cache files
24+
Thumbs.db
25+
Thumbs.db:encryptable
26+
ehthumbs.db
27+
ehthumbs_vista.db
28+
29+
# Dump file
30+
*.stackdump
31+
32+
# Folder config file
33+
[Dd]esktop.ini
34+
35+
# Recycle Bin used on file shares
36+
$RECYCLE.BIN/
37+
38+
# Windows Installer files
39+
*.cab
40+
*.msi
41+
*.msix
42+
*.msm
43+
*.msp
44+
45+
# Windows shortcuts
46+
*.lnk
47+
48+
# End of https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,dotenv
49+
50+
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
51+
52+
farm/**
53+
harvester/**
54+
!farm/
55+
!harvester/

docker-compose.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: "3.9"
2+
3+
services:
4+
main:
5+
image: odelucca/chia-plotter
6+
container_name: chia-plotter
7+
volumes:
8+
- ${TMP_HARVESTER_DIR}:/mnt/harvester
9+
- ${FINAL_FARM_DIR}:/mnt/farm
10+
networks:
11+
- net
12+
cpus: ${CPU_CORE}
13+
cpu_percent: 10
14+
restart: on-failure
15+
mem_limit: ${MEMORY_LIMIT}
16+
command: -t /mnt/harvester/ -d /mnt/farm/ -p ${POOL_KEY} -f ${FARM_KEY} -r ${THREAD_COUNT}
17+
18+
networks:
19+
net:
20+
driver: bridge

0 commit comments

Comments
 (0)