Learn and Be Curious

PS C:\go\src> mkdir github.com\hyperledger


    디렉터리: C:\go\src\github.com


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----     2017-05-21   오전 2:14                hyperledger


PS C:\go\src> cd .\github.com\hyperledger\
PS C:\go\src\github.com\hyperledger> git clone https://github.com/hyperledger/fablic.git
Cloning into 'fablic'...
remote: Repository not found.
fatal: repository 'https://github.com/hyperledger/fablic.git/' not found
PS C:\go\src\github.com\hyperledger> git clone https://github.com/hyperledger/fabric.git
Cloning into 'fabric'...
remote: Counting objects: 37242, done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 37242 (delta 17), reused 34 (delta 14), pack-reused 37191
Receiving objects: 100% (37242/37242), 47.39 MiB | 1.16 MiB/s, done.

Resolving deltas: 100% (21960/21960), done.
Checking out files: 100% (3409/3409), done.
PS C:\go\src\github.com\hyperledger> cd .\fabric\
PS C:\go\src\github.com\hyperledger\fabric> dir






PS C:\go\src\github.com\hyperledger\fabric\examples\chaincode\go\chaincode_example02> docker ps
CONTAINER ID        IMAGE                                                COMMAND                  CREATED             STATUS              PORTS                                                      NAMES
6fa6b88ddb0c        hyperledger/fabric-peer:x86_64-0.6.1-preview         "sh -c 'sleep 5; p..."   30 minutes ago      Up 11 minutes       0.0.0.0:7050-7051->7050-7051/tcp, 0.0.0.0:7053->7053/tcp   blockchain_vp0_1
278f00d3eac7        hyperledger/fabric-membersrvc:x86_64-0.6.1-preview   "membersrvc"             30 minutes ago      Up 11 minutes       0.0.0.0:7054->7054/tcp                                     blockchain_membersrvc_1
PS C:\go\src\github.com\hyperledger\fabric\examples\chaincode\go\chaincode_example02>




C:\Users\myung>set CORE_CHAINCODE_ID_NAME=mycc

C:\Users\myung>set CORE_PEER_ADDRESS=0.0.0.0:7051

C:\Users\myung>cd C:\go\src\github.com\hyperledger\fabric\examples\chaincode\go\chaincode_example02

C:\Go\src\github.com\hyperledger\fabric\examples\chaincode\go\chaincode_example02>chaincode_example02.exe
02:38:09.055 [shim] DEBU : Peer address: 0.0.0.0:7051
02:38:09.056 [shim] DEBU : os.Args returns: [chaincode_example02.exe]
02:38:09.057 [shim] DEBU : Registering.. sending REGISTER
02:38:09.062 [shim] DEBU : []Received message REGISTERED from shim
02:38:09.062 [shim] DEBU : []Handling ChaincodeMessage of type: REGISTERED(state:created)
02:38:09.064 [shim] DEBU : Received REGISTERED, ready for invocations









'dev > Blockchain' 카테고리의 다른 글

geth  (0) 2017.09.14
Ethereum mining at Linux (Ubuntu)  (0) 2017.06.28
Hyperledger Fabric Docker 이미지 받기  (0) 2017.05.21
Go  (0) 2017.05.21