-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-1141] Add kafka and couchDB to bootstrap
Checking this in to allow Kostas to debug issue on 3 kafka node composition. Solo and 1 kafka node are and couchdb configs are currently succeeding. Added couchdb example. Feel free to choose from any of the examples to configure the environment you want. Commented out for now to not fail CI. Now parameterized orderer references to allow usage of both solo and kafka consensus types to leverage the same scenario. Solo simply reuses orderer0 for all orderer references. Removed comments from couchdb config. Change-Id: Id835abd0112df3a56284ef436c69e0b468c3d2bf Signed-off-by: jeffgarratt <garratt.jeff@gmail.com>
- Loading branch information
1 parent
5b59e06
commit 94f6f4a
Showing
8 changed files
with
129 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
version: '2' | ||
|
||
services: | ||
|
||
couchdb0: | ||
image: hyperledger/fabric-couchdb | ||
ports: | ||
- "5984:5984" | ||
|
||
peer0: | ||
environment: | ||
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB | ||
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb0:5984 | ||
depends_on: | ||
- couchdb0 | ||
|
||
couchdb1: | ||
image: hyperledger/fabric-couchdb | ||
ports: | ||
- "6984:5984" | ||
|
||
peer1: | ||
environment: | ||
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB | ||
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984 | ||
depends_on: | ||
- couchdb1 | ||
|
||
couchdb2: | ||
image: hyperledger/fabric-couchdb | ||
ports: | ||
- "7984:5984" | ||
|
||
peer2: | ||
environment: | ||
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB | ||
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb2:5984 | ||
depends_on: | ||
- couchdb2 | ||
|
||
couchdb3: | ||
image: hyperledger/fabric-couchdb | ||
ports: | ||
- "8984:5984" | ||
|
||
peer3: | ||
environment: | ||
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB | ||
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb3:5984 | ||
depends_on: | ||
- couchdb3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
version: '2' | ||
services: | ||
orderer1: | ||
extends: | ||
service: orderer0 | ||
image: hyperledger/fabric-testenv-orderer | ||
environment: | ||
- ORDERER_GENERAL_LOCALMSPDIR=${ORDERER1_ORDERER_GENERAL_LOCALMSPDIR} | ||
- ORDERER_GENERAL_LOCALMSPID=${ORDERER1_ORDERER_GENERAL_LOCALMSPID} | ||
- ORDERER_GENERAL_TLS_PRIVATEKEY=${ORDERER1_ORDERER_GENERAL_TLS_PRIVATEKEY} | ||
- ORDERER_GENERAL_TLS_CERTIFICATE=${ORDERER1_ORDERER_GENERAL_TLS_CERTIFICATE} | ||
- ORDERER_GENERAL_TLS_ROOTCAS=${ORDERER1_ORDERER_GENERAL_TLS_ROOTCAS} | ||
depends_on: | ||
- orderer0 | ||
- kafka0 | ||
|
||
orderer2: | ||
extends: | ||
service: orderer0 | ||
image: hyperledger/fabric-testenv-orderer | ||
environment: | ||
- ORDERER_GENERAL_LOCALMSPDIR=${ORDERER2_ORDERER_GENERAL_LOCALMSPDIR} | ||
- ORDERER_GENERAL_LOCALMSPID=${ORDERER2_ORDERER_GENERAL_LOCALMSPID} | ||
- ORDERER_GENERAL_TLS_PRIVATEKEY=${ORDERER2_ORDERER_GENERAL_TLS_PRIVATEKEY} | ||
- ORDERER_GENERAL_TLS_CERTIFICATE=${ORDERER2_ORDERER_GENERAL_TLS_CERTIFICATE} | ||
- ORDERER_GENERAL_TLS_ROOTCAS=${ORDERER2_ORDERER_GENERAL_TLS_ROOTCAS} | ||
depends_on: | ||
- orderer0 | ||
- kafka0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters