apt install g++
cd $HOME
curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0
$HOME/.profile 에 다음 추가
PATH=$PATH:$HOME/fabric-samples/bin
export FABRIC_CFG_PATH=$PWD
export CHANNEL_NAME=omarketchannel
configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block
configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME
configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Store1MSPanchors.tx -channelID $CHANNEL_NAME -asOrg Store1MSP
configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Store2MSPanchors.tx -channelID $CHANNEL_NAME -asOrg Store2MSP
./script/script.sh omarketcc 10 60
- Open market header : omarket/app/main
- Store1 : omarket/app/store1
- Store2 : omarket/app/store2
go get github.com/hyperledger/fabric
cd $GOPATH/src/github.com/hyperledger/fabric/examples/events/eventsclient
go build
cp eventsclient omarket프로젝트경로/docker
cd omarket프로젝트경로/docker
docker build -t eventsclient .