Skip to content

Instantly share code, notes, and snippets.

@vadbars
Created November 11, 2017 12:49
Show Gist options
  • Select an option

  • Save vadbars/cb664df039b064b1a0e01f708577ea93 to your computer and use it in GitHub Desktop.

Select an option

Save vadbars/cb664df039b064b1a0e01f708577ea93 to your computer and use it in GitHub Desktop.
##Deployment
git clone --recurse-submodules https://github.com/GolosChain/golos.git
cd golos && git checkout v0.16.4
docker run goloschain/golos:v0.16.4
Edit the Dockerfile in the repository root
%s/BUILD_GOLOS_TESTNET=FALSE\C/BUILD_GOLOS_TESTNET=TRUE/g
%s/ADD documentation/seednodes /etc/golosd/seednodes/\C/#ADD documentation/seednodes /etc/golosd/seednodes//g
docker build -t goloschain/golos_testnet:0.16.4 .
docker run goloschain/golos_testnet:0.16.4
docker run -p 8096:8090 -p 2004:2001 -e STEEMD_WITNESS_NAME="cyberfounder" -e STEEMD_EXTRA_OPTS="--enable-stale-production" -e STEEMD_MINER_NAME="cyberfounder" -e STEEMD_PRIVATE_KEY="5JVFFWRLwz6JoP9kguuRFfytToGU6cLgBVTL9t6NB3D3BQLbUBS" -e STEEMD_MINING_THREADS=4 -v testnet_chain_data:/var/lib/golosd -it goloschain/golos_testnet:0.16.4
docker exec -it $container_hash /bin/bash
usr/local/bin/cli_wallet
set_password 12345
unlock 12345
import_key 5JVFFWRLwz6JoP9kguuRFfytToGU6cLgBVTL9t6NB3D3BQLbUBS
vote_for_witness cyberfounder cyberfounder true true
update_witness "cyberfounder" " " GLS58g5rWYS3XFTuGDSxLVwiBiPLoAyCZgn6aB9Ueh8Hj5qwQA3r6 {"account_creation_fee":"3.000 GOLOS","maximum_block_size":131072,"sbd_interest_rate":1000} true
publish_feed "cyberfounder" { "base":"0.999 GBG", "quote":"1.000 GOLOS"} true
##Development purposes
apt-get install -y \
autoconf \
automake \
autotools-dev \
bsdmainutils \
build-essential \
cmake \
doxygen \
git \
libboost-all-dev \
libreadline-dev \
libssl-dev \
libtool \
ncurses-dev \
pbzip2 \
pkg-config \
python3 \
python3-dev \
python3-pip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment