Last active
February 18, 2024 17:32
-
-
Save wakiyamap/72abaa4798eb1574e2ea19e1435be3d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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.6がないと言われるので・・・・・・お行儀がかなり悪いが、良い子は素直にpython3.6インストールしよう | |
# optional...... | |
sudo ln -sf /usr/bin/python3 /usr/bin/python3.6 | |
# fednode.pyの一番上を書き換えた方が早い? | |
# ubuntu22.04(python3.10)で動くのは確認 | |
# - /usr/bin/env python3.6 | |
# + /usr/bin/python | |
# 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が止まってる場合は要確認 | |
# https://github.com/CounterpartyXCP/counterwallet/commit/cf35871024efaba1846b87ff57062b5ae036008f | |
# 中身を弄る場合はbowerとnano(editerならなんでもいい)のインストールが必要 | |
# 最後に再起動して完了 | |
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