<commit_before># Copyright <NAME> All Rights Reserved
#
# SPDX-License-Identifier: Apache-2.0
#
PEERS += $(patsubst %,peer%,$(shell seq 1 4))
NODES += $(PEERS)
NODES += orderer
NODES += cli
NODES += ca
NODES += tlsca

DAEMONS = $(filter-out cli,$(NODES))

CHANNEL_NAME ?= mychannel

CRYPTOOUTPUT = build/cryptogen
ORDERER_ORG = $(CRYPTOOUTPUT)/ordererOrganizations/orderer.net
PEER_ORG= $(CRYPTOOUTPUT)/peerOrganizations/org1.net

CA_PATH = $(PEER_ORG)/ca
TLSCA_PATH= $(PEER_ORG)/tlsca
ORDERER_PATH = $(ORDERER_ORG)/orderers
PEER_PATH = $(PEER_ORG)/peers
USERS_PATH = $(PEER_ORG)/users

CHANNEL_TXNS=build/channel.tx build/anchor.tx

mspmap.orderer    := $(ORDERER_PATH)/orderer.orderer.net
mspmap.peer1      := $(PEER_PATH)/peer1.org1.net
mspmap.peer2      := $(PEER_PATH)/peer2.org1.net
mspmap.peer3      := $(PEER_PATH)/peer3.org1.net
mspmap.peer4      := $(PEER_PATH)/peer4.org1.net
mspmap.cli        := $(USERS_PATH)/Admin@org1.net

RELEASE ?= latest
CA_RELEASE ?= $(RELEASE)
FABRIC_RELEASE ?= $(RELEASE)
DOCKER_NS ?= hyperledger
TLS ?= true

CRYPTOGEN=build/bin/cryptogen
CONFIGTXGEN=build/bin/configtxgen

FABRICPKG=github.com/hyperledger/fabric
pkgmap.cryptogen      := $(FABRICPKG)/common/tools/cryptogen
pkgmap.configtxgen    := $(FABRICPKG)/common/configtx/tool/configtxgen

help:
	@cat usage.txt

compose: nodes build/docker-compose.yaml build/compose-up.sh build/configure.sh
	@echo "Build complete: run 'build/compose-up.sh'"

nodes: $(patsubst %,build/nodes/%,$(NODES))

$(CRYPTOOUTPUT): config/cryptogen.yaml $(CRYPTOGEN)
	@mkdir -p ${@D}
	$(CRYPTOGEN) generate --config $< --output $@

.PRECIOUS: %.yaml
%.yaml:
	@mkdir -p ${@D}
	cp config/${@F} $@

%/genesis.block: build/configtx.yaml build/core.yaml $(CONFIGTXGEN)
	@mkdir -p ${@D}
	FABRIC_CFG_PATH=build $(CONFIGTXGEN) -profile SampleOrg -outputBlock $@

%.tx: build/configtx.yaml build/core.yaml $(CONFIGTXGEN)

%/channel.tx:
	@mkdir -p ${@D}
	FABRIC_CFG_PATH=build $(CONFIGTXGEN) -profile SampleChannel \<commit_msg>FAB-5634 Update Makefile for examples/cluster<commit_after># Copyright <NAME> All Rights Reserved
#
# SPDX-License-Identifier: Apache-2.0
#
PEERS += $(patsubst %,peer%,$(shell seq 1 4))
NODES += $(PEERS)
NODES += orderer
NODES += cli
NODES += ca
NODES += tlsca

DAEMONS = $(filter-out cli,$(NODES))

CHANNEL_NAME ?= mychannel

CRYPTOOUTPUT = build/cryptogen
ORDERER_ORG = $(CRYPTOOUTPUT)/ordererOrganizations/orderer.net
PEER_ORG= $(CRYPTOOUTPUT)/peerOrganizations/org1.net

CA_PATH = $(PEER_ORG)/ca
TLSCA_PATH= $(PEER_ORG)/tlsca
ORDERER_PATH = $(ORDERER_ORG)/orderers
PEER_PATH = $(PEER_ORG)/peers
USERS_PATH = $(PEER_ORG)/users

CHANNEL_TXNS=build/channel.tx build/anchor.tx

mspmap.orderer    := $(ORDERER_PATH)/orderer.orderer.net
mspmap.peer1      := $(PEER_PATH)/peer1.org1.net
mspmap.peer2      := $(PEER_PATH)/peer2.org1.net
mspmap.peer3      := $(PEER_PATH)/peer3.org1.net
mspmap.peer4      := $(PEER_PATH)/peer4.org1.net
mspmap.cli        := $(USERS_PATH)/Admin@org1.<EMAIL>

RELEASE ?= latest
CA_RELEASE ?= $(RELEASE)
FABRIC_RELEASE ?= $(RELEASE)
DOCKER_NS ?= hyperledger
TLS ?= true

CRYPTOGEN=build/bin/cryptogen
CONFIGTXGEN=build/bin/configtxgen

FABRICPKG=github.com/hyperledger/fabric
pkgmap.cryptogen      := $(FABRICPKG)/common/tools/cryptogen
pkgmap.configtxgen    := $(FABRICPKG)/common/tools/configtxgen

help:
	@cat usage.txt

compose: nodes build/docker-compose.yaml build/compose-up.sh build/configure.sh
	@echo "Build complete: run 'build/compose-up.sh'"

nodes: $(patsubst %,build/nodes/%,$(NODES))

$(CRYPTOOUTPUT): config/cryptogen.yaml $(CRYPTOGEN)
	@mkdir -p ${@D}
	$(CRYPTOGEN) generate --config $< --output $@

.PRECIOUS: %.yaml
%.yaml:
	@mkdir -p ${@D}
	cp config/${@F} $@

%/genesis.block: build/configtx.yaml build/core.yaml $(CONFIGTXGEN)
	@mkdir -p ${@D}
	FABRIC_CFG_PATH=build $(CONFIGTXGEN) -profile SampleOrg -outputBlock $@

%.tx: build/configtx.yaml build/core.yaml $(CONFIGTXGEN)

%/channel.tx:
	@mkdir -p ${@D}
	FABRIC_CFG_PATH=build $(CONFIGTXGEN) -profile SampleChannel \
{'fraction_non_alphanumeric': 0.1635047428856715, 'fraction_numerical': 0.00998502246630055, 'mean_word_length': 4.875366568914956, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6782437', 'n_tokens_mistral': 1657, 'n_tokens_neox': 1609, 'n_words': 272}