Skip to content

Instantly share code, notes, and snippets.

View mtnieto's full-sized avatar
🏠
Working from home

María Teresa Nieto mtnieto

🏠
Working from home
View GitHub Profile
{
"version": "1.0.0",
"client": {
"organization": "org1",
"logging": {
"level": "debug"
},
"peer": {
"timeout": {
"connection": "15s",
/*
* 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')
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
Organizations:
- &OrdererOrg
Name: OrdererOrg
ID: OrdererMSP
MSPDir: crypto-config/ordererOrganizations/myapp.com/msp
Policies:
OrdererOrgs:
- Name: Orderer
Domain: myapp.com
CA:
Country: US
Province: California
Locality: San Francisco
Specs:
case $COMMAND in
"start")
generateCerts
generateChannelArtifacts
replacePrivateKey
pullDockerImages
startNetwork
"start")
#generateCerts
#generateChannelArtifacts
replacePrivateKey
#pullDockerImages
#startNetwork
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
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
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
version: '2'
services:
orderer.myapp.com: