-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change orderer address #65
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
0d58813
change orderer address
sapthasurendran 85fe5ad
updated script
sapthasurendran 582c2d3
orderer update
sapthasurendran f30f35b
Timestamp info added
sapthasurendran 237a12a
updated gitignore
sapthasurendran 262de49
update script to add tls
sapthasurendran 9b6dc92
system channel updates
sapthasurendran 9dc207e
added orderer 4 and 5
sapthasurendran File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,10 @@ log.txt | |
*.tar.gz | ||
*.block | ||
*.tx | ||
|
||
*.json | ||
*.pb | ||
|
||
|
||
|
||
|
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
50 changes: 50 additions & 0 deletions
50
fabric-network/docker-based-syschannel/docker/ordererUpdate.yaml
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,50 @@ | ||
# Copyright IBM Corp. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
version: '2' | ||
|
||
volumes: | ||
orderer2.example.com: | ||
|
||
|
||
networks: | ||
test: | ||
name: fabric_test | ||
|
||
services: | ||
|
||
orderer2.example.com: | ||
container_name: orderer2.example.com | ||
image: hyperledger-fabric.jfrog.io/fabric-orderer:amd64-latest | ||
environment: | ||
- FABRIC_LOGGING_SPEC=DEBUG | ||
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 | ||
- ORDERER_GENERAL_LISTENPORT=7057 | ||
- ORDERER_GENERAL_GENESISMETHOD=file | ||
- ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block | ||
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP | ||
- ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp | ||
|
||
# enabled TLS | ||
- ORDERER_GENERAL_TLS_ENABLED=true | ||
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key | ||
- ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt | ||
- ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt] | ||
- ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE=/var/hyperledger/orderer/tls/server.crt | ||
- ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY=/var/hyperledger/orderer/tls/server.key | ||
- ORDERER_GENERAL_CLUSTER_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt] | ||
- ORDERER_OPERATIONS_LISTENADDRESS=0.0.0.0:17057 | ||
working_dir: /opt/gopath/src/github.com/hyperledger/fabric | ||
command: orderer | ||
volumes: | ||
- ../channel-artifacts/latest_config.block:/var/hyperledger/orderer/orderer.genesis.block | ||
- ../organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/msp:/var/hyperledger/orderer/msp | ||
- ../organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/:/var/hyperledger/orderer/tls | ||
- orderer2.example.com:/var/hyperledger/production/orderer | ||
ports: | ||
- 7057:7057 | ||
- 17057:17057 | ||
networks: | ||
- test |
25 changes: 25 additions & 0 deletions
25
...network/docker-based-syschannel/organizations/cryptogen/crypto-config-update-orderer.yaml
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,25 @@ | ||
# Copyright IBM Corp. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
# --------------------------------------------------------------------------- | ||
# "OrdererOrgs" - Definition of organizations managing orderer nodes | ||
# --------------------------------------------------------------------------- | ||
OrdererOrgs: | ||
# --------------------------------------------------------------------------- | ||
# Orderer | ||
# --------------------------------------------------------------------------- | ||
- Name: Orderer | ||
Domain: example.com | ||
EnableNodeOUs: true | ||
# --------------------------------------------------------------------------- | ||
# "Specs" - See PeerOrgs for complete description | ||
# --------------------------------------------------------------------------- | ||
Specs: | ||
- Hostname: orderer | ||
SANS: | ||
- localhost | ||
- Hostname: orderer2 | ||
SANS: | ||
- localhost |
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 |
---|---|---|
|
@@ -12,13 +12,17 @@ | |
|
||
export CORE_PEER_TLS_ENABLED=true | ||
export ORDERER_CA=${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer1.example.com/msp/tlscacerts/tlsca.example.com-cert.pem | ||
export ORDERER2_CA=${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/msp/tlscacerts/tlsca.example.com-cert.pem | ||
export ORDERER3_CA=${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/msp/tlscacerts/tlsca.example.com-cert.pem | ||
export ORDERER4_CA=${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer4.example.com/msp/tlscacerts/tlsca.example.com-cert.pem | ||
export ORDERER5_CA=${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer5.example.com/msp/tlscacerts/tlsca.example.com-cert.pem | ||
|
||
export PEER0_ORG1_CA=${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt | ||
export PEER0_ORG2_CA=${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt | ||
export PEER0_ORG3_CA=${PWD}/organizations/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls/ca.crt | ||
export PEER1_ORG1_CA=${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt | ||
export PEER1_ORG2_CA=${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer1.org2.example.com/tls/ca.crt | ||
export PEER1_ORG3_CA=${PWD}/organizations/peerOrganizations/org3.example.com/peers/peer1.org3.example.com/tls/ca.crt | ||
|
||
# Set environment variables for the peer0 org | ||
setGlobals() { | ||
local USING_ORG="" | ||
|
@@ -53,6 +57,8 @@ setGlobals() { | |
fi | ||
} | ||
|
||
|
||
|
||
# Set environment variables for the peer org | ||
setGlobalsPeer1() { | ||
local USING_ORG="" | ||
|
@@ -136,3 +142,43 @@ verifyResult() { | |
fatalln "$2" | ||
fi | ||
} | ||
|
||
# Set environment variables for the orderer | ||
setOrderer(){ | ||
if [ -z "$OVERRIDE_ORG" ]; then | ||
USING_ORG=$1 | ||
else | ||
USING_ORG="${OVERRIDE_ORG}" | ||
fi | ||
infoln "Using orderer organization ${USING_ORG}" | ||
if [ $USING_ORG -eq 1 ]; then | ||
export CORE_PEER_LOCALMSPID="OrdererMSP" | ||
export CORE_PEER_TLS_ROOTCERT_FILE=$ORDERER_CA | ||
export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/ordererOrganizations/example.com/users/[email protected]/msp | ||
export CORE_PEER_ADDRESS=orderer1.example.com:7050 | ||
elif [ $USING_ORG -eq 2 ]; then | ||
export CORE_PEER_LOCALMSPID="OrdererMSP" | ||
export CORE_PEER_TLS_ROOTCERT_FILE=$ORDERER2_CA | ||
export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/ordererOrganizations/example.com/users/[email protected]/msp | ||
export CORE_PEER_ADDRESS=orderer2.example.com:7051 | ||
|
||
elif [ $USING_ORG -eq 3 ]; then | ||
export CORE_PEER_LOCALMSPID="OrdererMSP" | ||
export CORE_PEER_TLS_ROOTCERT_FILE=$ORDERER3_CA | ||
export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/ordererOrganizations/example.com/users/[email protected]/msp | ||
export CORE_PEER_ADDRESS=orderer3.example.com:7052 | ||
elif [ $USING_ORG -eq 4 ]; then | ||
export CORE_PEER_LOCALMSPID="OrdererMSP" | ||
export CORE_PEER_TLS_ROOTCERT_FILE=$ORDERER4_CA | ||
export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/ordererOrganizations/example.com/users/[email protected]/msp | ||
export CORE_PEER_ADDRESS=orderer4.example.com:7053 | ||
elif [ $USING_ORG -eq 5 ]; then | ||
export CORE_PEER_LOCALMSPID="OrdererMSP" | ||
export CORE_PEER_TLS_ROOTCERT_FILE=$ORDERER5_CA | ||
export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/ordererOrganizations/example.com/users/[email protected]/msp | ||
export CORE_PEER_ADDRESS=orderer4.example.com:7054 | ||
else | ||
errorln "ORG Unknown" | ||
fi | ||
} | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should add 4 and 5 as we have added the others now