Tools, FAQ, Tutorials:
Deploy orderer.example.com Manually
How to Deploy orderer.example.com as a Docker container manually?
✍: FYIcenter.com
You can follow this tutorial to
Deploy orderer.example.com as a Docker container manually.
1. Verify the configuration of the orderer.example.com container defined in the docker-compose.yml file:
$ cd ~/hyperledger-binaries/fabric-samples/basic-network
$ more docker-compose.yml
...
orderer.example.com:
container_name: orderer.example.com
image: hyperledger/fabric-orderer
environment:
- FABRIC_LOGGING_SPEC=info
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
- ORDERER_GENERAL_GENESISMETHOD=file
- ORDERER_GENERAL_GENESISFILE=/etc/hyperledger/configtx/genesis.block
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
- ORDERER_GENERAL_LOCALMSPDIR=/etc/hyperledger/msp/orderer/msp
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer
command: orderer
ports:
- 7050:7050
volumes:
- ./config/:/etc/hyperledger/configtx
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/:/etc/hyperledger/msp/orderer
- ./crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/:/etc/hyperledger/msp/peerOrg1
networks:
- basic
...
As you can see, the orderer.example.com container will be using the "latest" version of "hyperledger/fabric-orderer" docker image.
2. Bring down all containers defined docker-compose.yml file:
$ docker-compose -f docker-compose.yml down
3. Bring up the orderer.example.com container defined in docker-compose.yml file. If container is not there, create it from the image. If the image is not there, download it from the Internet.
$ docker-compose -f docker-compose.yml up -d orderer.example.com Creating network "net_basic" with the default driver Creating orderer.example.com ... done
4. Verify the container and the image:
$ docker container list IMAGE STATUS NAMES hyperledger/fabric-orderer Up About a minute orderer.example.com $ docker images | grep fabric-orderer IMAGE TAG SIZE hyperledger/fabric-orderer latest 173MB
As you can see, the orderer.example.com container has been manually deployed and started with the latest version of "hyperledger/fabric-orderer" image. If the image is not available on the Docker, it will be automatically downloaded from the Docker image repository on the Internet.
⇒ Deploy peer0.org1.example.com Manually
⇐ Deploy ca.example.com Manually
2020-03-25, ∼1988🔥, 0💬
Popular Posts:
How to use the "find-and-replace" Policy Statement for an Azure API service operation? The "find-and...
How To Remove Slashes on Submitted Input Values in PHP? By default, when input values are submitted ...
How to use urllib.parse.urlencode() function to encode HTTP POST data? My form data has special char...
What validation keywords I can use in JSON Schema to specifically validate JSON Array values? The cu...
How to use "xml-to-json" Azure API Policy Statement? The "xml-to-json" Policy Statement allows you t...