works now!
This commit is contained in:
parent
81ff8ad85b
commit
c47901bcfc
8
Makefile
8
Makefile
@ -12,7 +12,13 @@ build: kill
|
|||||||
.
|
.
|
||||||
|
|
||||||
run: kill
|
run: kill
|
||||||
docker run --name sneak-steemd -d sneak/steemd
|
docker run \
|
||||||
|
--name sneak-steemd \
|
||||||
|
-e STEEMD_WITNESS_NAME=$(STEEMD_WITNESS_NAME) \
|
||||||
|
-e STEEMD_MINER_NAME=$(STEEMD_MINER_NAME) \
|
||||||
|
-e STEEMD_PRIVATE_KEY=$(STEEMD_PRIVATE_KEY) \
|
||||||
|
-d \
|
||||||
|
sneak/steemd
|
||||||
docker logs -f sneak-steemd
|
docker logs -f sneak-steemd
|
||||||
|
|
||||||
kill:
|
kill:
|
||||||
|
19
steemd.run
19
steemd.run
@ -1,12 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -x
|
|
||||||
|
|
||||||
export HOME="/var/lib/steemd"
|
export HOME="/var/lib/steemd"
|
||||||
|
|
||||||
RANDOMPW=$(dd if=/dev/urandom bs=10 count=1 status=none |
|
|
||||||
shasum | cut -b 1-20)
|
|
||||||
|
|
||||||
chown -R steemd:steemd $HOME
|
chown -R steemd:steemd $HOME
|
||||||
|
|
||||||
SEED_NODES="
|
SEED_NODES="
|
||||||
@ -28,6 +23,20 @@ for NODE in $SEED_NODES ; do
|
|||||||
ARGS+=" --seed-node=$NODE"
|
ARGS+=" --seed-node=$NODE"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [[ ! -z "$STEEMD_WITNESS_NAME" ]]; then
|
||||||
|
ARGS+=" --witness=\"$STEEMD_WITNESS_NAME\""
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -z "$STEEMD_MINER_NAME" ]]; then
|
||||||
|
ARGS+=" --miner=[\"$STEEMD_MINER_NAME\",\"$STEEMD_PRIVATE_KEY\"]"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -z "$STEEMD_PRIVATE_KEY" ]]; then
|
||||||
|
ARGS+=" --private-key=$STEEMD_PRIVATE_KEY"
|
||||||
|
fi
|
||||||
|
|
||||||
|
ARGS+=" --mining-threads=${STEEMD_MINING_THREADS:-8}"
|
||||||
|
|
||||||
# without --data-dir it uses cwd as datadir(!)
|
# without --data-dir it uses cwd as datadir(!)
|
||||||
# who knows what else it dumps into current dir
|
# who knows what else it dumps into current dir
|
||||||
cd $HOME
|
cd $HOME
|
||||||
|
Loading…
Reference in New Issue
Block a user