BOOTSTRAP_HOST=localhost:4000
ORG_HOST=remotehost:4000
#BOOTSTRAP_HOST=api.org1.example.com:4000
# Orderer TLS
curl http://${BOOTSTRAP_HOST}:4000/node/msp/orderer --output msp_orderer.tgz
MSP_FILE=msp_org2.tgz
# Get MSP archive:
curl http://${ORG_HOST}/node/msp/org --output ${MSP_FILE}
#OR
tar czf msp_org2.tgz peerOrganizations ordererOrganizations
# Send integration request with certs:
curl -i --connect-timeout 30 --max-time 120 --retry 1 -k http://${BOOTSTRAP_HOST}/integration/service/orgs \
-F peerName="peer0" -F orgId="org2" -F domain="example.com" -F orgIp="192.168.99.128" -F peerPort="7051" -F wwwPort="80" \
-F certFiles=@${MSP_FILE}
# Add org to channel (with certs)
JWT=`(curl -d '{"username":"user1","password":"pass"}' -H "Content-Type: application/json" http://${BOOTSTRAP_HOST}/users | tr -d '"')`
curl -i --connect-timeout 30 --max-time 120 --retry 1 -k http://${BOOTSTRAP_HOST}/channels/:channelId/orgs \
-H "Authorization: Bearer $JWT" \
-F peerName="peer0" -F orgId="org2" -F domain="example.com" -F orgIp="192.168.99.128" -F peerPort="7051" -F wwwPort="80" \
-F certFiles=@${MSP_FILE}
# Add org to consortium
/consortium/members
# Raft orderer
tar czf msp-orderer.tgz -C crypto-config/ordererOrganizations/example2.com/ msp
#sudo chown -R $USER crypto-config
curl -i -k --connect-timeout 30 --max-time 240 --retry 0 \
http://${BOOTSTRAP_HOST}/integration/service/raft \
-F ordererName=orderer -F domain=osn-org2 -F ordererPort=7050 -F wwwPort=80 -F ordererIp=192.168.1.23 \
-F orgId=org2 -F [email protected] \
--output crypto-config/configtx/example2.com/genesis.pb
#
DNS
registerOrg '{"orgId":"test","domain":"domain2.com","orgIp":"192.1.1.1","peerPort":"7051"}'
registerOrderer '{"ordererName":"test-orderer", "domain":"ex2.com", "ordererPort":"7050", "ordererIp":"192.168.99.1","orgId":"org2"}'
curl 'http://localhost:4000/chaincodes' -X POST -H "Authorization: Bearer $JWT" --data-binary
tar czf msp-orderer.tgz -C crypto-config/ordererOrganizations/ex2.com/ msp
curl -k -0 --connect-timeout 30 --max-time 240 --retry 0
http://192.168.99.1:4000/integration/service/raft
-F ordererName=orderer -F domain=ex2.com -F ordererPort=7050 -F wwwPort=8000 -F ordererIp=192.168.99.100
-F orgId=org11 -F [email protected]
--output crypto-config/configtx/ex2.com/genesis.pb
curl -v http://localhost:4000/node/msp/org --output msp-org.tgz
curl -i --connect-timeout 30 --max-time 120 --retry 1 -k http://192.168.99.1:4000/integration/service/orgs
-F peerName="peer0" -F orgId="org12" -F domain="example2.com" -F orgIp="192.168.1.23" -F peerPort="8051" -F wwwPort="81"
-F [email protected]
curl -i --connect-timeout 30 --max-time 120 --retry 1 -k http://192.168.99.1:4000/channels/test/orgs
-H "Authorization: Bearer $JWT"
-F peerName="peer0" -F orgId="org11" -F domain="ex2.com" -F orgIp="192.168.99.100" -F peerPort="7051" -F wwwPort="8000"
https://cloud.redhat.com/blog/grpc-or-http/2-ingress-connectivity-in-openshift https://kubernetes.io/blog/2018/11/07/grpc-load-balancing-on-kubernetes-without-tears/
https://www.educba.com/java-runtimeexception/
https://github.com/hyperledger/fabric-samples/tree/main/test-network-k8s https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html
tar czf msp-orderer.tgz -C crypto-config ordererOrganizations/example2.com/msp
curl -v -k --connect-timeout 30 --max-time 240 --retry 0
http://192.168.99.1:4000/integration/service/raft
-F ordererName=orderer -F domain=org2-osn.example.com -F ordererPort=7050 -F wwwPort=79 -F ordererIp=192.168.99.131
-F orgId=org2 -F [email protected]
--output crypto-config/configtx/org2-osn.example.com/genesis.pb
'{"172.17.0.1": "orderer.example.com www.example.com www.orderer.example.com www.org1.example.com peer0-org1.example.com","192.168.99.131": "orderer.org2-osn.example.com www.org2-osn.example.com www.orderer.org2-osn.example.com orderer.org2-osn.example.com www.org2-osn.example.com www.orderer.org2-osn.example.com"}'
curl 'http://localhost:4000/channels/common/chaincodes/dns' \
-H 'Content-Type: application/json'
-H 'Authorization: Bearer '
--data-raw '{"chaincodeId":"dns","channelId":"common","fcn":"put","args":["a","19"],"targets":[],"waitForTransactionEvent":true,"funccall_stub":"put a 19"}'
curl -i -v --connect-timeout 30 --max-time 120 --retry 1 -k http://192.168.99.1:4000/integration/service/orgs
-F peerName="peer0" -F orgId="org2" -F domain="example.com" -F orgIp="172.18.0.3" -F peerPort="8051" -F wwwPort="811"
-F [email protected]
registerOrg '{"orgId":"org1","domain":"example.com","orgIp":"192.168.99.1","peerPort":"443"}' registerOrderer '{"ordererName":"orderer", "domain":"example.com", "ordererPort":"443", "ordererIp":"192.168.99.1","orgId":"org1"}'
registerOrg '{"orgId":"org2","domain":"example.com","orgIp":"192.168.99.1","peerPort":"8051"}'
curl -k -0 --connect-timeout 30 --max-time 240 --retry 0
http://localhost:4000/integration/service/raft
-F ordererName=orderer -F domain=ex4.com -F ordererPort=7050 -F wwwPort=8000 -F ordererIp=24.24.24.24
-F orgId=org11 -F [email protected]