forked from hyperledger-iroha/iroha-dco
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request hyperledger-iroha#104 from hyperledger/master
master->dev
- Loading branch information
Showing
8 changed files
with
273 additions
and
40 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
config/*.py | ||
config/__pycahe__ | ||
**/__pycache__/* | ||
__pycache__/* | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
from collections import namedtuple | ||
GitHub = namedtuple("name", "email") | ||
github = GitHub( "", "") | ||
|
||
|
||
myhosts = [""] | ||
port = "22" | ||
user = "mizuki" | ||
password = "" | ||
repo_name = "https://github.com/hyperledger/iroha" | ||
deploy_hosts = [""] | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"me":{ | ||
"ip":"172.17.0.6", | ||
"name":"kabohara", | ||
"publicKey":"Sht5opDIxbyK+oNuEnXUs5rLbrvVgb2GjSPfqIYGFdU=", | ||
"privateKey":"aGIuSZRhnGfFyeoKNm/NbTylnAvRfMu3KumOEfyT2HPf36jSF22m2JXWrdCmKiDoshVqjFtZPX3WXaNuo9L8WA==" | ||
}, | ||
"group":[ | ||
{ | ||
"ip":"172.17.0.3", | ||
"name":"mizuki", | ||
"publicKey":"jDQTiJ1dnTSdGH+yuOaPPZIepUj1Xt3hYOvLQTME3V0=" | ||
}, | ||
{ | ||
"ip":"172.17.0.4", | ||
"name":"natori", | ||
"publicKey":"Q5PaQEBPQLALfzYmZyz9P4LmCNfgM5MdN1fOuesw3HY=" | ||
}, | ||
{ | ||
"ip":"172.17.0.5", | ||
"name":"kabohara", | ||
"publicKey":"f5MWZUZK9Ga8XywDia68pH1HLY/Ts0TWBHsxiFDR0ig=" | ||
}, | ||
{ | ||
"ip":"172.17.0.6", | ||
"name":"samari", | ||
"publicKey":"Sht5opDIxbyK+oNuEnXUs5rLbrvVgb2GjSPfqIYGFdU=" | ||
} | ||
] | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,189 @@ | ||
いろは構築手順 / Iroha build method | ||
=================================== | ||
|
||
環境 / Environment | ||
================== | ||
|
||
今回は"sudo"を書きたくないのでrootで行いましたが普通のユーザーの方がいいと思います。よしなにお願いします | ||
|
||
I could not write "sudo" in this time and I executed as root, but I | ||
think normal user is better, Do as you think best. | ||
|
||
OS | ||
-- | ||
|
||
:: | ||
|
||
root@mizuki # lsb_release -a | ||
No LSB modules are available. | ||
Distributor ID: Ubuntu | ||
Description: Ubuntu 16.04.1 LTS | ||
Release: 16.04 | ||
Codename: xenial | ||
|
||
Compiler & Maketool | ||
------------------- | ||
|
||
基本的にC++14がコンパイルできる物が必要 | ||
|
||
I need C++14 compilable compiler | ||
|
||
:: | ||
|
||
root@mizuki # g++ -v | ||
gcc version 5.4.1 20160904 (Ubuntu 5.4.1-2ubuntu1~16.04) | ||
|
||
:: | ||
|
||
root@mizuki # cmake -version | ||
cmake version 2.8.0 | ||
|
||
依存ライブラリのインストール / install dependics library | ||
======================================================== | ||
|
||
xsltprocのインストール / Install xsltproc | ||
----------------------------------------- | ||
|
||
KeccakCodePackageのbuildで使用 | ||
|
||
used by building KeccakCodePackage | ||
|
||
:: | ||
|
||
# apt -y install xsltproc | ||
|
||
libsnappy-dev等のインストール / Install libsnappy-dev and so on | ||
--------------------------------------------------------------- | ||
|
||
LevelDBのbuildで使用 | ||
|
||
used by building LevelDB | ||
|
||
:: | ||
|
||
# apt -y install libhdf5-serial-dev libsnappy-dev liblmdb-dev | ||
|
||
基本的なもののインストール / Install basic library | ||
----------------------------------------------------- | ||
|
||
基本的な物、Dockerとかだとたまに無い | ||
|
||
Basically library | ||
|
||
:: | ||
|
||
# apt -y install autoconf automake libtool unzip | ||
|
||
protobuf のインストール / Install protobuf | ||
------------------------------------------ | ||
|
||
buildは時間かかる あと\ **バージョンは3.0.0でなければいけない** | ||
|
||
**Version should be 3.0.0!!** | ||
|
||
:: | ||
|
||
# cd /tmp; git clone -b v3.0.0 https://github.com/google/protobuf.git | ||
# cd /tmp/protobuf;(git cherry-pick 1760feb621a913189b90fe8595fffb74bce84598; echo Force continue) | ||
# cd /tmp/protobuf; ./autogen.sh; ./configure --prefix=/usr; | ||
# make -j 16; | ||
# make install | ||
# protoc --version | ||
|
||
:: | ||
|
||
root@mizuki # protoc --version | ||
libprotoc 3.0.0 | ||
|
||
grpc のインストール / Install grpc | ||
---------------------------------- | ||
|
||
buildに時間かかるのでBinaryがほしい | ||
|
||
:: | ||
|
||
cd /tmp; git clone -b $(curl -L http://grpc.io/release) https://github.com/grpc/grpc | ||
cd /tmp/grpc; git submodule update --init; make -j 14; make install | ||
|
||
:: | ||
|
||
root@mizuki # which grpc_cpp_plugin | ||
/usr/local/bin/grpc_cpp_plugin | ||
|
||
Iroha本体のclone / Clone iroha | ||
============================== | ||
|
||
いろはを構築したい場所をよしなに決めてください | ||
|
||
Could you decide place you will install iroha as you think best. | ||
|
||
:: | ||
|
||
~ # git clone --recursive https://github.com/hyperledger/iroha.git | ||
~ # ls -l | ||
total 4 | ||
drwxr-xr-x 8 root root 4096 Dec 8 17:15 iroha | ||
|
||
IROHA\_HOMEの設定 / set IROHA\_HOME | ||
----------------------------------- | ||
|
||
:: | ||
|
||
~ # cd iroha | ||
~/iroha # export IROHA_HOME=$(pwd) | ||
~/iroha # echo $IROHA_HOME | ||
/root/iroha | ||
|
||
依存ライブラリのBuild / Build dependics library | ||
----------------------------------------------- | ||
|
||
LevelDB | ||
~~~~~~~ | ||
|
||
:: | ||
|
||
# cd $IROHA_HOME/core/vendor/leveldb; make -j 14 | ||
|
||
ed25519 | ||
~~~~~~~ | ||
|
||
:: | ||
|
||
# cd $IROHA_HOME/core/vendor/ed25519; make -j 14 | ||
|
||
libkeccak | ||
~~~~~~~~~ | ||
|
||
:: | ||
|
||
# cd $IROHA_HOME/core/vendor/KeccakCodePackage; make; make generic64/libkeccak.a | ||
|
||
libhash | ||
~~~~~~~~~ | ||
|
||
何故かCMakeが正しく動かないので自分でBuildします | ||
|
||
I should make libhash, because cmake doesn't running correctly. | ||
|
||
:: | ||
|
||
# cd $IROHA_HOME/core/infra/crypto/; make | ||
|
||
|
||
|
||
Iroha本体のbuild / build iroha | ||
============================== | ||
|
||
:: | ||
|
||
~/iroha # mkdir build | ||
~/iroha # cd build/ | ||
~/iroha/build # cmake .. | ||
. | ||
. | ||
. | ||
[ 98%] Built target sumeragi_test | ||
[100%] Built target iroha-main | ||
root@mizuki ~/iroha/build# | ||
|
||
完成! Complate! |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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