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, ∼1752🔥, 0💬
Popular Posts:
Tools, FAQ, Tutorials: JSON Validator JSON-XML Converter XML-JSON Converter JSON FAQ/Tutorials Pytho...
How To Protect Special Characters in Query String in PHP? If you want to include special characters ...
Where to find tutorials on JSON (JavaScript Object Notation) text string format? I want to know how ...
How to convert JSON Objects to PHP Associative Arrays using the json_decode() function? Actually, JS...
How To Copy Array Values to a List of Variables in PHP? If you want copy all values of an array to a...