Tools, FAQ, Tutorials:
Default orderer.yaml in Orderer Docker Image
What is the Default orderer.yaml file in Orderer Docker Image?
✍: FYIcenter.com
The default orderer.yaml file in the Orderer Docker Image
is the default version of orderer.yaml, which
provides settings to control the behavior of the Orderer peer.
If you deploy the Orderer Docker container without your own version of orderer.yaml, the default version in the Orderer Docker image will be used.
Here is how to view the default orderer.yaml file in the Orderer Docker image after it's been deployed to the Orderer Docker container:
1. Attach a "bash" shell to the Orderer Docker container:
$ docker exec -it orderer.example.com bash root@552c40a524aa:/opt/gopath/src/github.com/hyperledger/fabric# cd root@552c40a524aa:~# pwd /root
2. View the default orderer.yaml file:
root@552c40a524aa:~# more /etc/hyperledger/fabric/orderer.yaml
# Copyright IBM Corp. All Rights Reserved.
---
# Orderer Configuration
General:
LedgerType: file
ListenAddress: 127.0.0.1
ListenPort: 7050
TLS:
Enabled: false
Keepalive:
ServerMinInterval: 60s
ServerInterval: 7200s
ServerTimeout: 20s
Cluster:
GenesisMethod: provisional
GenesisProfile: SampleInsecureSolo
GenesisFile: genesisblock
LocalMSPDir: msp
LocalMSPID: SampleOrg
...
You can also override any settings in the orderer.yaml file by using environment variables included in the docker-compose.orderer.yaml file.
For example, we changed the "GenesisMethod" setting from "provisional" to "file" by the following settings in the docker-compose.orderer.yaml file:
$ cd fabric-orderer
$ more docker-compose-orderer.yaml:
# Copyright IBM Corp. All Rights Reserved.
version: '2'
volumes:
orderer.example.com:
networks:
hello:
services:
orderer.example.com:
networks:
- hello
container_name: orderer.example.com
image: hyperledger/fabric-orderer:amd64-1.4.0
environment:
- FABRIC_LOGGING_SPEC=INFO
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
- ORDERER_GENERAL_GENESISMETHOD=file
- ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block
...
As you can see, Fabric Orderer is designed with a very flexible configuration mechanism.
⇒ Deploy Orderer with Default Configuration
⇐ "could not load a valid signer certificate" Error
2019-08-23, ∼1628🔥, 0💬
Popular Posts:
How to use the JSON to XML Conversion Tool at utilities-online.info? If you want to try the JSON to ...
How to start Visual Studio Command Prompt? I have Visual Studio 2017 Community version with Visual C...
How To Use an Array as a Queue in PHP? A queue is a simple data structure that manages data elements...
How to create a navigation file like navigation.xhtml for an EPUB 3.0 book? At least one navigation ...
How to start Visual Studio Command Prompt? I have Visual Studio 2017 Community version with Visual C...