Enhance dev mode

pull/135/head
Baohua Yang 2019-12-27 16:17:29 -08:00
parent ad998d193c
commit 1a144008ea
2 changed files with 13 additions and 1 deletions

View File

@ -107,6 +107,10 @@ Organizations:
Admins:
Type: Signature
Rule: "OR('OrdererMSP.admin')"
OrdererEndpoints:
- "orderer0.example.com:7050"
- "orderer1.example.com:7050"
- "orderer2.example.com:7050"
- &Org1
# Name is the key by which this org will be referenced in channel

View File

@ -6,12 +6,15 @@
# support advanced bash grammar
SHELL:=/bin/bash
# mode of the network: solo, kafka, raft, dev
# mode of the network: solo, kafka, raft
HLF_MODE ?= raft
# mode of db: golevel, couchdb
DB_MODE ?= golevel
# mode of dev
DEV_MODE ?= non-dev
NETWORK_INIT_WAIT ?= 2 # time to wait the fabric network finish initialization
COMPOSE_FILE ?= "docker-compose-2orgs-4peers-raft.yaml"
@ -25,12 +28,17 @@ else ifeq ($(HLF_MODE),raft)
endif
COMPOSE_FILE="docker-compose-2orgs-4peers-$(HLF_MODE).yaml"
LOG_PATH=$(HLF_MODE)/logs
ifeq ($(DB_MODE),couchdb)
COMPOSE_FILE="docker-compose-2orgs-4peers-couchdb.yaml"
endif
ifeq ($(DEV_MODE),dev)
COMPOSE_FILE="docker-compose-2orgs-4peers-dev.yaml"
endif
all: test
test: