works now!

This commit is contained in:
Jeffrey Paul 2016-08-18 14:34:18 +02:00
parent 81ff8ad85b
commit c47901bcfc
2 changed files with 21 additions and 6 deletions

View File

@ -12,7 +12,13 @@ build: 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
kill:

View File

@ -1,12 +1,7 @@
#!/bin/bash
set -x
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
SEED_NODES="
@ -28,6 +23,20 @@ for NODE in $SEED_NODES ; do
ARGS+=" --seed-node=$NODE"
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(!)
# who knows what else it dumps into current dir
cd $HOME