์๋ ํ์ธ์!
์ ํธ์์๋ ํ์ดํผ๋ ์ ธ ํจ๋ธ๋ฆญ์ ์คํ์ํค๊ธฐ ์ํ ํ๊ฒฝ์ค์ ์ ๊ตฌ์ถํ์์ต๋๋ค.
๋ชป๋ณด๊ณ ์ค์ ๋ถ๋ค์ ์๋์ ๋งํฌ๋ฅผ ์ฐธ์กฐํ์
์ ๊ผญ! ํ๊ฒฝ์ค์ ์ ํด์ฃผ์๊ณ ์ค์
์ผ ํฉ๋๋ค.
HyperLedger Fabric ๊ฐ๋ฐํ๊ธฐ 1. ํ์ดํผ๋ ์ ํจ๋ธ๋ฆญ ํ๊ฒฝ์ค์
์ด๋ฒ์๋ IBM์์ ์ ๊ณตํด์ฃผ๋ HyperLedger ์์ ๋ฒ์ ์ ๋ค์ด๋ฐ๊ณ , ํ๋ฒ ์คํ์์ผ ๋ณด๋๋ก ํ๊ฒ ์ต๋๋ค.
http://hyperledger-fabric.readthedocs.io/en/release-1.1/samples.html
http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html
๋จผ์ hyperledger sample์ ๋ค์ด๋ฐ๊ธฐ ์ํ ํด๋๋ฅผ ์์ฑํด์ค๋๋ค.
mkdir -p $GOPATH/src/github.com/hyperledger
cd $GOPATH/src/github.com/hyperledger
git ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ fabric-sample project๋ฅผ cloneํฉ๋๋ค.
git clone -b master https://github.com/hyperledger/fabric-samples.git
๋ค์ด์ด ์๋ฃ๋์์ผ๋ฉด, ํด๋น ํด๋๋ก ์ด๋ํ๋ค ๋ค์ ์์ ์ ํฉ๋๋ค.
cd fabric-samples
git checkout v1.1.0
git branch
ํ์ดํผ๋ ์ ธ sample์ ํ์ํ binary tool ์ ์ค์นํ๋๋ก ํฉ๋๋ค.
sudo curl -sSL https://goo.gl/6wtTN5 | sudo bash -s 1.1.0
์์๊ฐ์ ์์ ์ ๋ง์ณค์ผ๋ฉด, ๋ค์๊ณผ ๊ฐ์ด hyperledger sample๋ค์ด ๋ค์ด๋ก๋ ๋๊ฒ์ ํ์ธํ์ค์ ์์๊ฒ๋๋ค
์ด์ค, ํ์ดํผ๋ ์ ธ ๊ณต์ํํ์ด์ง์์ ์ค๋ช ํด์ฃผ๊ณ ์๋ Build Your First Network ํด๋์ ๋ค์ด๊ฐ์ ์คํ์์ผ๋ณด๋๋ก ํ๊ฒ ์ต๋๋ค.
cd first-network
์ด๋ฏธ ๋ชจ๋ ๊ตฌ์ฑํ์ผ๋ค์ด ๋ค ์๋ฃ๋์ด์๋ ์์ ์ด๊ธฐ๋๋ฌธ์, ์ ํฌ๋ byfn.sh๋ฅผ ์คํ์ํค๊ธฐ๋ง ํ๋ฉด๋๋๋ฐ์
./byfn.sh -m generate
๋ช ๋ น์ด๋ฅผ ํตํด ์ ๋์์ค ๋ธ๋ญ ๋ฐ ์ธ์ฆ์๋ฅผ ์์ฑ ํ๊ณ
./byfn.sh -m up
์ ํตํด chaincode ์ด๋ฏธ์ง๋ฅผ ์ปดํ์ผํ๊ณ ํด๋น ์ปจํ ์ด๋๋ฅผ ์คํํ๋ ๊ณผ์ ์ ๋๋ค.
๊ทธ๋ผ START ์ END๊ฐ ๋จ๋๊ฒ์ ํ์ธํ ์๊ฐ ์์ผ์ ๋ฐ์, ์ด๋ ๊ฒ๋๋ฉด ์ผ๋จ ์์๋ ์ํฉ์ ๋๋ค.
ํ์ฌ ์์ ๊ฐ์ ๊ณผ์ ์ ํตํด ์ ๋์์ค ๋ธ๋ญ์ ์์ฑํ๊ณ ์ปจํ ์ด๋๊น์ง ์คํ์ ํ์์ต๋๋ค.
๋ค์์๊ฐ์๋ BYFN์ ๋ํ ๋ถ์๊ณผ ์ฐจ๊ทผ์ฐจ๊ทผ ์ด๋ป๊ฒ ์งํ๋๊ณ ์๋์ง docs ๋ฌธ์๋ฅผ ๋ณด๋ฉด์ ๊ณต๋ถํด๊ฐ ์์ ์ ๋๋ค.
ํน์ ๋ฏธ๋ฆฌ ๊ณต๋ถ๋ฅผ ํ์ จ๊ฑฐ๋ ์ฐธ๊ณ ์ฌ์ดํธ, ํ๋ฆฐ์ ๋ฑ์ด ์๋ค๋ฉด ๋ฐ๋ก๋ฐ๋ก ์๋ ค์ฃผ์๋ฉด ๊ฐ์ฌํ๊ฒ ์ต๋๋ค!!!
๊ทธ๋ผ ๋ชจ๋ ์ด๊ณตํ์ธ์!!