From c26e1dee942e5ecd2db62ac81d26b37e1822847e Mon Sep 17 00:00:00 2001 From: Baohua Yang Date: Mon, 11 Jul 2022 15:57:35 -0700 Subject: [PATCH] Allow mounting osn data to local --- hyperledger_fabric/v2.2.4/base-raft.yaml | 3 +++ .../v2.2.4/docker-compose-2orgs-4peers-raft.yaml | 16 ++++++++-------- hyperledger_fabric/v2.2.4/scripts/variables.sh | 3 +++ 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/hyperledger_fabric/v2.2.4/base-raft.yaml b/hyperledger_fabric/v2.2.4/base-raft.yaml index 4497321e..dd05ecdb 100644 --- a/hyperledger_fabric/v2.2.4/base-raft.yaml +++ b/hyperledger_fabric/v2.2.4/base-raft.yaml @@ -70,6 +70,7 @@ services: - ./crypto-config/ordererOrganizations/example.com/orderers/orderer0.example.com/msp:/etc/hyperledger/fabric/msp - ./crypto-config/ordererOrganizations/example.com/orderers/orderer0.example.com/tls/:/etc/hyperledger/fabric/tls - ./raft/channel-artifacts/orderer0.genesis.block:/etc/hyperledger/fabric/orderer.genesis.block + #- ./volumes/orderer0:/var/hyperledger/production/orderer command: orderer start orderer1.example.com: # There can be multiple orderers @@ -86,6 +87,7 @@ services: - ./crypto-config/ordererOrganizations/example.com/orderers/orderer1.example.com/msp:/etc/hyperledger/fabric/msp - ./crypto-config/ordererOrganizations/example.com/orderers/orderer1.example.com/tls/:/etc/hyperledger/fabric/tls - ./raft/channel-artifacts/orderer1.genesis.block:/etc/hyperledger/fabric/orderer.genesis.block + #- ./volumes/orderer1:/var/hyperledger/production/orderer command: orderer start orderer2.example.com: # There can be multiple orderers @@ -102,6 +104,7 @@ services: - ./crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/msp:/etc/hyperledger/fabric/msp - ./crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/:/etc/hyperledger/fabric/tls - ./raft/channel-artifacts/orderer2.genesis.block:/etc/hyperledger/fabric/orderer.genesis.block + #- ./volumes/orderer2:/var/hyperledger/production/orderer command: orderer start ## following are peer nodes ## diff --git a/hyperledger_fabric/v2.2.4/docker-compose-2orgs-4peers-raft.yaml b/hyperledger_fabric/v2.2.4/docker-compose-2orgs-4peers-raft.yaml index da3e3114..22d9f2d6 100644 --- a/hyperledger_fabric/v2.2.4/docker-compose-2orgs-4peers-raft.yaml +++ b/hyperledger_fabric/v2.2.4/docker-compose-2orgs-4peers-raft.yaml @@ -18,15 +18,15 @@ services: # file: base-raft.yaml # service: ca.org2.example.com - sdk-node: - extends: - file: base-raft.yaml - service: sdk-node +# sdk-node: +# extends: +# file: base-raft.yaml +# service: sdk-node - gateway-java: - extends: - file: base-raft.yaml - service: gateway-java +# gateway-java: +# extends: +# file: base-raft.yaml +# service: gateway-java cli: extends: diff --git a/hyperledger_fabric/v2.2.4/scripts/variables.sh b/hyperledger_fabric/v2.2.4/scripts/variables.sh index 98436b1c..89e51547 100644 --- a/hyperledger_fabric/v2.2.4/scripts/variables.sh +++ b/hyperledger_fabric/v2.2.4/scripts/variables.sh @@ -37,6 +37,9 @@ ORDERER0_ADMIN_MSP=/etc/hyperledger/fabric/crypto-config/ordererOrganizations/ex ORDERER0_TLS_CA=/etc/hyperledger/fabric/crypto-config/ordererOrganizations/example.com/orderers/orderer0.example.com/msp/tlscacerts/tlsca.example.com-cert.pem ORDERER0_TLS_ROOTCERT=/etc/hyperledger/fabric/crypto-config/ordererOrganizations/example.com/orderers/orderer0.example.com/tls/ca.crt +ORDERER1_TLS_ROOTCERT=/etc/hyperledger/fabric/crypto-config/ordererOrganizations/example.com/orderers/orderer1.example.com/tls/ca.crt +ORDERER2_TLS_ROOTCERT=/etc/hyperledger/fabric/crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/ca.crt + # Org1 related path ORG1_ADMIN_MSP=/etc/hyperledger/fabric/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp ORG1_PEER0_MSP=/etc/hyperledger/fabric/crypto-config/peerOrganizations/org1.example.com/peers/peer0.Org1.example.com/msp