Sign inSign up

andrewnk/turtlecoin

By andrewnk

•Updated over 6 years ago

TurtleCoin software and community projects built on Alpine

Image
0

4.5K

andrewnk/turtlecoin repository overview

⁠TurtleCoin miner With TTYD Docker Image

This image pulls the binary from the base image and runs the miner on apline using ttyd. The process is run within tmux to persist the session in case the page reloads or crashes.

⁠Table of Contents

  1. Examples⁠
  2. Build Args/Env Variables⁠

⁠Examples:

docker build -t miner-ttyd .
docker run -d -p 7681:7681 -e ADDRESS=TRTLuz2tDXUDHSAPzB1bZnQU9qyGnN5cX6htZZzjxPJ3Qr9u5hrQjsQBi7j7d75SAgDygkR1adQBhZHdQrFeWoaMXqWwytS37xT --name miner-ttyd miner-ttyd

To use miner navigate to http://localhost:7681⁠ (or whatever port you pass in, e.g. -p 8080:7681)

Accessing the web terminal with a username and password (use your own address):

docker run -d -p 7681:7681 -e ADDRESS=TRTLuz2tDXUDHSAPzB1bZnQU9qyGnN5cX6htZZzjxPJ3Qr9u5hrQjsQBi7j7d75SAgDygkR1adQBhZHdQrFeWoaMXqWwytS37xT -e WEB_USERNAME=Slow -e WEB_PASSWORD=AndSteady --name miner-ttyd miner-ttyd

This image is also hosted on Docker Hub⁠.

To run from the Docker Hub image (use your own address):

docker run -d -p 7681:7681 -e ADDRESS=TRTLuz2tDXUDHSAPzB1bZnQU9qyGnN5cX6htZZzjxPJ3Qr9u5hrQjsQBi7j7d75SAgDygkR1adQBhZHdQrFeWoaMXqWwytS37xT --name miner-ttyd andrewnk/turtlecoin:miner-ttyd

To use from the Docker Hub image:

FROM andrewnk/turtlecoin:miner-ttyd as miner-ttyd

⁠Build Arguments and Environment Variables:

NameDefaultFunction
DAEMON_HOST127.0.0.1The daemon host to use for node operations
DAEMON_PORT11898The daemon RPC port to use for node operations
SCAN_TIME1Blockchain polling interval (seconds). How often miner will check the Blockchain for updates
ADDRESSThe valid CryptoNote miner's address
BLOCK_TIMESTAMP_INTERVAL0Timestamp incremental step for each subsequent block. May be set only if --first-block-timestamp has been set.
FIRST_BLOCK_TIMESTAMP0Set timestamp to the first mined block. 0 means leave timestamp unchanged
LIMIT0Mine this exact quantity of blocks and then stop. 0 means no limit
THREADS8The mining threads count. Must not exceed hardware capabilities.
WEB_USERNAMEUsername to access the web terminal
WEB_PASSWORDPassword to access the web terminal

Tag summary

Content type

Image

Digest

Size

6.1 MB

Last updated

over 6 years ago

docker pull andrewnk/turtlecoin:miner-ttyd