removed preloaded blockchain, not working right

This commit is contained in:
Jeffrey Paul 2016-09-02 05:24:34 +02:00
parent 695848a92a
commit be3618ce2a
2 changed files with 1 additions and 10 deletions

View File

@ -125,9 +125,6 @@ ENV HOME /var/lib/steemd
RUN useradd -s /bin/bash -m -d /var/lib/steemd steemd
RUN chown steemd:steemd -R /var/lib/steemd
# include blockchain seed in docker image to speed up startup
ADD https://cdn.datavibe.net/f/eeqj/20160902.steemd-blockchain.tar.bz2 /var/cache/steemd/blockchain.tbz2
VOLUME ["/var/lib/steemd"]
# rpc service:

View File

@ -53,13 +53,7 @@ cd $HOME
# overwrite local config with image one
cp /etc/steemd/config.ini $HOME/config.ini
# if no blockchain in volume, use seed from image and verify
if [[ ! -d /var/lib/steemd/blockchain ]]; then
cd /var/lib/steemd
tar xvjpf /var/cache/steemd/blockchain.tbz2
chown -R steemd:steemd blockchain
ARGS+=" --replay-blockchain"
fi
chown steemd:steemd $HOME/config.ini
# slow down restart loop if flapping
sleep 1