Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# dockerのインストール
# https://docs.docker.com/engine/install/ubuntu/
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
# docker-composeのインストール
# from https://docs.docker.com/compose/install/
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
# python3.5がないと言われるので・・・・・・お行儀がかなり悪いが、良い子は素直にpython3.5インストールしよう
# optional......
sudo ln -sf /usr/bin/python3 /usr/bin/python3.5
# monapartyインストール
git clone https://github.com/monaparty/federatednode.git
cd federatednode
git checkout monaparty
git pull
sudo ln -sf `pwd`/fednode.py /usr/local/bin/fednode
for i in config/*/*.default; do cp $i $(dirname $i)/$(basename $i .default); done
fednode install full master
fednode stop
# indexdに必要な物が入らないのでupdateを一度回す
fednode update
fednode stop
# counterwalletのbuildが途中で止まる?っぽいので追加でインストール
fednode shell counterwallet
cd src
bower install
cd vendors/bitcoinjs-lib
npm install
browserify --standalone bitcoinjs src/index.js | uglifyjs -c --mangle reserved=['BigInteger','ECPair','Point'] -o bitcoinjs.min.js
cd ../../../
npm install
npm run build
exit
# 最後に再起動して完了
fednode restart
# サーバ証明書を使う場合はここでcounterwallet.key,counterwallet.pemをそれぞれ書き換える
# config/counterwallet/ssl
# cloudflare等の中間証明書を使う場合も同じパスでcloudflare.crtを置く
# 完了したら fednode restart counterwallet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment