-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Miner v0.5.0 - Syslog, extra args, and custom entrypoint with dumb-in…
…it (#22) * Miner v0.5.0 - Syslog, extra args, and custom entrypoint with dumb-init * fixing image build and test * Fixing dumb-init * testing new miner image * removing worker_id * debugging new image * new image * no need to specify tls version * hmm * fixing scheme and supporting multiple pools * latest miner * nocolor seems to trump syslog ? * Final image and working chart
- Loading branch information
1 parent
aa45034
commit 78a636d
Showing
9 changed files
with
60 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,15 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | |
### Dependencies | ||
- ... | ||
|
||
## [v0.5.0] | ||
### Added | ||
- Custom `entrypoint.sh` is copied to the image as `/usr/local/bin/custom-entrypoint.sh` to allow | ||
for extra args and `dumb-init` | ||
|
||
### Dependencies | ||
- Latest Ethereum miner [`https://github.com/no-fee-ethereum-mining/[email protected]`](https://github.com/no-fee-ethereum-mining/nsfminer/releases/tag/v1.3.5) | ||
|
||
|
||
## [v0.4.0] | ||
### Changed | ||
- Decreasing the final image size using the `base` image rather than | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.4.0 | ||
0.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
miningPools=($MINING_POOLS) | ||
poolArgs="" | ||
for pool in "${miningPools[@]}"; do | ||
poolArgs="${poolArgs} -P stratum+ssl://${WALLET_ADDRESS}.${HOSTNAME}@${pool}:${STRATUM_TLS_PORT}" | ||
done | ||
|
||
# negative port number indicates API is in read-only mode preventing miner from being tampered with | ||
# ensure SIGINTs get mapped to SIGTERMs | ||
exec dumb-init --rewrite 15:2 nsfminer \ | ||
-U \ | ||
${poolArgs} \ | ||
--api-port "-${API_PORT}" $@ |