Skip to content

Commit

Permalink
fix: revert all unrelevant changes
Browse files Browse the repository at this point in the history
  • Loading branch information
osamamagdy committed Dec 6, 2024
1 parent eae6380 commit 8f21aaf
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion ccapi/config/configsdk-org1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ client:

tlsCerts:
# [Optional]. Use system certificate pool when connecting to peers, orderers (for negotiating TLS) Default: false
systemCertPool: false
systemCertPool: true
# [Optional]. Client key and cert for TLS handshake with peers and orderers
client:
# 使用byfn中Admin@org1的证书
Expand Down
4 changes: 2 additions & 2 deletions ccapi/config/configsdk-org2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ client:

tlsCerts:
# [Optional]. Use system certificate pool when connecting to peers, orderers (for negotiating TLS) Default: false
systemCertPool: false
systemCertPool: true
# [Optional]. Client key and cert for TLS handshake with peers and orderers
client:
# 使用byfn中Admin@org2的证书
Expand All @@ -49,7 +49,7 @@ client:
#
channels:
# name of the channel
mychannel:
mainchannel:
# Required. list of orderers designated by the application to use for transactions on this
# channel. This list can be a result of access control ("org2" can only access "ordererA"), or
# operational decisions to share loads from applications among the orderers. The values must
Expand Down
2 changes: 1 addition & 1 deletion ccapi/docker-compose-1org.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
- 80:80
volumes:
- ./:/rest-server
- ../fabric-private-chaincode/samples/deployment/test-network/fabric-samples/test-network/organizations:/fabric/organizations
- ../fabric/organizations:/fabric/organizations
logging:
options:
max-size: 50m
Expand Down
4 changes: 2 additions & 2 deletions ccapi/web-client/docker-compose-goinitus.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'

networks:
fabric_test:
cc-tools-demo-net:
external: true

services:
Expand All @@ -11,4 +11,4 @@ services:
ports:
- "8080:80"
networks:
- fabric_test
- cc-tools-demo-net
2 changes: 1 addition & 1 deletion fabric/addOrg3/docker/docker-compose-ca-org3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ services:
- "11054:11054"
command: sh -c 'fabric-ca-server start -b admin:adminpw -d'
volumes:
- /src/github.com/hyperledger/fabric-private-chaincode/samples/deployment/test-network/fabric-samples/test-network/addOrg3/fabric-ca/org3:/etc/hyperledger/fabric-ca-server
- ../fabric-ca/org3:/etc/hyperledger/fabric-ca-server
container_name: ca_org3
16 changes: 8 additions & 8 deletions fabric/scripts/ccutils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ startDockerContainer() {
${CONTAINER_CLI} run -d --name ${CC_NAME}.org1.example.com \
--network cc-tools-demo-net \
-e CHAINCODE_SERVER_ADDRESS=0.0.0.0:9999 \
-e CHAINCODE_PKG_ID=$PACKAGE_ID -e CORE_CHAINCODE_ID_NAME=$PACKAGE_ID \
-e CHAINCODE_ID=$PACKAGE_ID -e CORE_CHAINCODE_ID_NAME=$PACKAGE_ID \
-e RUN_CCAAS=true -e TLS_ENABLED=$CCAAS_TLS_ENABLED \
-e KEY_PATH=certs/server/key.pem -e CERT_PATH=certs/server/cert.pem \
-e CA_CERT_PATH=certs/ca/cert.pem \
Expand All @@ -210,7 +210,7 @@ startDockerContainer() {
${CONTAINER_CLI} run -d --name ${CC_NAME}.org2.example.com \
--network cc-tools-demo-net \
-e CHAINCODE_SERVER_ADDRESS=0.0.0.0:9998 \
-e CHAINCODE_PKG_ID=$PACKAGE_ID -e CORE_CHAINCODE_ID_NAME=$PACKAGE_ID \
-e CHAINCODE_ID=$PACKAGE_ID -e CORE_CHAINCODE_ID_NAME=$PACKAGE_ID \
-e RUN_CCAAS=true -e TLS_ENABLED=$CCAAS_TLS_ENABLED \
-e KEY_PATH=certs/server/key.pem -e CERT_PATH=certs/server/cert.pem \
-e CA_CERT_PATH=certs/ca/cert.pem \
Expand All @@ -225,7 +225,7 @@ startDockerContainer() {
${CONTAINER_CLI} run -d --name ${CC_NAME}.org3.example.com \
--network cc-tools-demo-net \
-e CHAINCODE_SERVER_ADDRESS=0.0.0.0:9997 \
-e CHAINCODE_PKG_ID=$PACKAGE_ID -e CORE_CHAINCODE_ID_NAME=$PACKAGE_ID \
-e CHAINCODE_ID=$PACKAGE_ID -e CORE_CHAINCODE_ID_NAME=$PACKAGE_ID \
-e RUN_CCAAS=true -e TLS_ENABLED=$CCAAS_TLS_ENABLED \
-e KEY_PATH=certs/server/key.pem -e CERT_PATH=certs/server/cert.pem \
-e CA_CERT_PATH=certs/ca/cert.pem \
Expand All @@ -241,7 +241,7 @@ startDockerContainer() {
${CONTAINER_CLI} run -d --name ${CC_NAME}.org.example.com \
--network cc-tools-demo-net \
-e CHAINCODE_SERVER_ADDRESS=0.0.0.0:${CCAAS_SERVER_PORT} \
-e CHAINCODE_PKG_ID=$PACKAGE_ID -e CORE_CHAINCODE_ID_NAME=$PACKAGE_ID \
-e CHAINCODE_ID=$PACKAGE_ID -e CORE_CHAINCODE_ID_NAME=$PACKAGE_ID \
-e RUN_CCAAS=true -e TLS_ENABLED=$CCAAS_TLS_ENABLED \
-e KEY_PATH=certs/server/key.pem -e CERT_PATH=certs/server/cert.pem \
-e CA_CERT_PATH=certs/ca/cert.pem \
Expand All @@ -260,27 +260,27 @@ startDockerContainer() {
infoln " ${CONTAINER_CLI} run --rm -d --name peer0.org1_${CC_NAME}_ccaas \
--network cc-tools-demo-net \
-e CHAINCODE_SERVER_ADDRESS=0.0.0.0:${CCAAS_SERVER_PORT} \
-e CHAINCODE_PKG_ID=$PACKAGE_ID -e CORE_CHAINCODE_ID_NAME=$PACKAGE_ID \
-e CHAINCODE_ID=$PACKAGE_ID -e CORE_CHAINCODE_ID_NAME=$PACKAGE_ID \
-e RUN_CCAAS=true \
${CC_NAME}_ccaas_image:latest"
infoln " ${CONTAINER_CLI} run --rm -d --name peer0.org2_${CC_NAME}_ccaas \
--network cc-tools-demo-net \
-e CHAINCODE_SERVER_ADDRESS=0.0.0.0:${CCAAS_SERVER_PORT} \
-e CHAINCODE_PKG_ID=$PACKAGE_ID -e CORE_CHAINCODE_ID_NAME=$PACKAGE_ID \
-e CHAINCODE_ID=$PACKAGE_ID -e CORE_CHAINCODE_ID_NAME=$PACKAGE_ID \
-e RUN_CCAAS=true \
${CC_NAME}_ccaas_image:latest"

infoln " ${CONTAINER_CLI} run --rm -d --name peer0.org3_${CC_NAME}_ccaas \
--network cc-tools-demo-net \
-e CHAINCODE_SERVER_ADDRESS=0.0.0.0:${CCAAS_SERVER_PORT} \
-e CHAINCODE_PKG_ID=$PACKAGE_ID -e CORE_CHAINCODE_ID_NAME=$PACKAGE_ID \
-e CHAINCODE_ID=$PACKAGE_ID -e CORE_CHAINCODE_ID_NAME=$PACKAGE_ID \
-e RUN_CCAAS=true \
${CC_NAME}_ccaas_image:latest"
else
infoln " ${CONTAINER_CLI} run --rm -d --name peer0.org_${CC_NAME}_ccaas \
--network cc-tools-demo-net \
-e CHAINCODE_SERVER_ADDRESS=0.0.0.0:${CCAAS_SERVER_PORT} \
-e CHAINCODE_PKG_ID=$PACKAGE_ID -e CORE_CHAINCODE_ID_NAME=$PACKAGE_ID \
-e CHAINCODE_ID=$PACKAGE_ID -e CORE_CHAINCODE_ID_NAME=$PACKAGE_ID \
-e RUN_CCAAS=true \
${CC_NAME}_ccaas_image:latest"
fi
Expand Down

0 comments on commit 8f21aaf

Please sign in to comment.