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
CHANNEL_NAME="$1" | |
DELAY="$2" | |
MAX_RETRY="$3" | |
VERBOSE="$4" | |
: ${CHANNEL_NAME:="mychannel"} | |
: ${DELAY:="3"} | |
: ${MAX_RETRY:="5"} | |
: ${VERBOSE:="true"} | |
FABRIC_CFG_PATH=${PWD}configtx |
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
set -x | |
mkdir -p /organizations/peerOrganizations/org1.example.com/ | |
export FABRIC_CA_CLIENT_HOME=/organizations/peerOrganizations/org1.example.com/ | |
fabric-ca-client enroll -u https://admin:adminpw@ca-org1:7054 --caname ca-org1 --tls.certfiles "/organizations/fabric-ca/org1/tls-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
sleep 2 | |
mkdir -p organizations/ordererOrganizations/example.com | |
export FABRIC_CA_CLIENT_HOME=/organizations/ordererOrganizations/example.com | |
echo $FABRIC_CA_CLIENT_HOME | |
set -x | |
fabric-ca-client enroll -u https://admin:adminpw@ca-orderer:10054 --caname ca-orderer --tls.certfiles /organizations/fabric-ca/ordererOrg/tls-cert.pem | |
{ set +x; } 2>/dev/null |
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
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: fabricfiles-pv | |
labels: | |
name: fabricfiles | |
spec: | |
storageClassName: default | |
capacity: | |
storage: 5Gi |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: ca-org3 | |
labels: | |
app: ca-org3 | |
spec: | |
type: ClusterIP | |
selector: | |
app: ca-org3 # deploymenti bu selector üzerinden bulur.deploymentdeki matchLabels ile aynı olmalı. |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: ca-org2 | |
labels: | |
app: ca-org2 | |
spec: | |
type: ClusterIP | |
selector: | |
app: ca-org2 |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: ca-org1 | |
labels: | |
app: ca-org1 | |
spec: | |
type: ClusterIP | |
selector: | |
app: ca-org1 # deploymenti bu selector üzerinden bulur.deploymentdeki matchLabels ile aynı olmalı. |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: ca-orderer | |
labels: | |
app: ca-orderer | |
spec: | |
type: ClusterIP | |
selector: | |
app: ca-orderer |
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 is a configuration file for the fabric-ca-server command. | |
# | |
# COMMAND LINE ARGUMENTS AND ENVIRONMENT VARIABLES | |
# ------------------------------------------------ | |
# Each configuration element can be overridden via command line | |
# arguments or environment variables. The precedence for determining | |
# the value of each element is as follows: | |
# 1) command line argument | |
# Examples: |
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 is a configuration file for the fabric-ca-server command. | |
# | |
# COMMAND LINE ARGUMENTS AND ENVIRONMENT VARIABLES | |
# ------------------------------------------------ | |
# Each configuration element can be overridden via command line | |
# arguments or environment variables. The precedence for determining | |
# the value of each element is as follows: | |
# 1) command line argument | |
# Examples: |