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
{ | |
"version": "1.0.0", | |
"client": { | |
"organization": "org1", | |
"logging": { | |
"level": "debug" | |
}, | |
"peer": { | |
"timeout": { | |
"connection": "15s", |
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
/* | |
* SPDX-License-Identifier: Apache-2.0 | |
*/ | |
'use strict'; | |
const FabricCAServices = require('fabric-ca-client'); | |
const { FileSystemWallet, X509WalletMixin, Gateway } = require('fabric-network'); | |
const fs = require('fs'); | |
const Client = require('fabric-client') |
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
version: 2.0.0 | |
# | |
# The client section used by GO SDK. | |
# | |
client: | |
# Which organization does this application instance belong to? The value must be the name of an org | |
# defined under "organizations" | |
organization: org1 |
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
Organizations: | |
- &OrdererOrg | |
Name: OrdererOrg | |
ID: OrdererMSP | |
MSPDir: crypto-config/ordererOrganizations/myapp.com/msp | |
Policies: |
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
OrdererOrgs: | |
- Name: Orderer | |
Domain: myapp.com | |
CA: | |
Country: US | |
Province: California | |
Locality: San Francisco | |
Specs: |
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
case $COMMAND in | |
"start") | |
generateCerts | |
generateChannelArtifacts | |
replacePrivateKey | |
pullDockerImages | |
startNetwork |
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
"start") | |
#generateCerts | |
#generateChannelArtifacts | |
replacePrivateKey | |
#pullDockerImages | |
#startNetwork |
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
function replacePrivateKey () { | |
echo # Replace key | |
#Si trabajas con macOSx descomenta todas las lineas siguientes, si no dejalo como esta. | |
# ARCH=`uname -s | grep Darwin` | |
# if [ "$ARCH" == "Darwin" ]; then | |
# OPTS="-it" | |
# else |
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
version: '2' | |
services: | |
caNetflix: | |
image: hyperledger/fabric-ca | |
environment: | |
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server | |
- FABRIC_CA_SERVER_CA_NAME=ca-netflix | |
- FABRIC_CA_SERVER_TLS_ENABLED=true | |
- FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.netflix.myapp.com-cert.pem |
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
# Copyright IBM Corp. All Rights Reserved. | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
version: '2' | |
services: | |
orderer.myapp.com: |