Deploy orderer.example.com Manually

Q

How to Deploy orderer.example.com as a Docker container manually?

✍: FYIcenter.com

A

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

basic-network Sample Network

⇑⇑ Hyperledger Tutorials

2020-03-25, 1161🔥, 0💬