-
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-3733] Fix the CouchDB option for e2e_cli
Include a docker-compose file that will work as an addition to existing docker-compose file and will 1) create the necessary CouchDB containers and 2) include the necessary environment variables in the peers. Deleting the previous directions in the existing docker-compose and updating the driver script so the CouchDB option can be run simply by calling the driver with and added parameter "couchdb". Also exposed all chaincode examples instead of just example02, because marbles02 (JSON based) is a better demonstration on CouchDB. Document update to follow. Change-Id: I9c4dbb1f08a6e07319077fb79942483a7782980f Signed-off-by: Adnan Choudhury <adnan.choudhury@itpeoplecorp.com>
- Loading branch information
Showing
4 changed files
with
71 additions
and
57 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
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,62 @@ | ||
version: '2' | ||
|
||
services: | ||
couchdb0: | ||
container_name: couchdb0 | ||
image: hyperledger/fabric-couchdb | ||
# Comment/Uncomment the port mapping if you want to hide/expose the CouchDB service, | ||
# for example map it to utilize Fauxton User Interface in dev environments. | ||
ports: | ||
- "5984:5984" | ||
|
||
peer0.org1.example.com: | ||
environment: | ||
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB | ||
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb0:5984 | ||
depends_on: | ||
- couchdb0 | ||
|
||
couchdb1: | ||
container_name: couchdb1 | ||
image: hyperledger/fabric-couchdb | ||
# Comment/Uncomment the port mapping if you want to hide/expose the CouchDB service, | ||
# for example map it to utilize Fauxton User Interface in dev environments. | ||
ports: | ||
- "6984:5984" | ||
|
||
peer1.org1.example.com: | ||
environment: | ||
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB | ||
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984 | ||
depends_on: | ||
- couchdb1 | ||
|
||
couchdb2: | ||
container_name: couchdb2 | ||
image: hyperledger/fabric-couchdb | ||
# Comment/Uncomment the port mapping if you want to hide/expose the CouchDB service, | ||
# for example map it to utilize Fauxton User Interface in dev environments. | ||
ports: | ||
- "7984:5984" | ||
|
||
peer0.org2.example.com: | ||
environment: | ||
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB | ||
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb2:5984 | ||
depends_on: | ||
- couchdb2 | ||
|
||
couchdb3: | ||
container_name: couchdb3 | ||
image: hyperledger/fabric-couchdb | ||
# Comment/Uncomment the port mapping if you want to hide/expose the CouchDB service, | ||
# for example map it to utilize Fauxton User Interface in dev environments. | ||
ports: | ||
- "8984:5984" | ||
|
||
peer1.org2.example.com: | ||
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