@@ -48,7 +48,7 @@ function printHelp() {
48
48
echo " -f <docker-compose-file> - specify which docker-compose file use (defaults to docker-compose-cli.yaml)"
49
49
echo " -s <dbtype> - the database backend to use: goleveldb (default) or couchdb"
50
50
echo " -l <language> - the programming language of the chaincode to deploy: go (default), javascript, or java"
51
- echo " -o <consensus-type> - the consensus-type of the ordering service: solo (default), kafka, or etcdraft"
51
+ echo " -o <consensus-type> - the consensus-type of the ordering service: solo (default) or etcdraft"
52
52
echo " -i <imagetag> - the tag to be used to launch the network (defaults to \" latest\" )"
53
53
echo " -a - launch certificate authorities (no certificate authorities are launched by default)"
54
54
echo " -n - do not deploy chaincode (abstore chaincode is deployed by default)"
@@ -164,9 +164,7 @@ function networkUp() {
164
164
export BYFN_CA1_PRIVATE_KEY=$( cd crypto-config/peerOrganizations/org1.example.com/ca && ls * _sk)
165
165
export BYFN_CA2_PRIVATE_KEY=$( cd crypto-config/peerOrganizations/org2.example.com/ca && ls * _sk)
166
166
fi
167
- if [ " ${CONSENSUS_TYPE} " == " kafka" ]; then
168
- COMPOSE_FILES=" ${COMPOSE_FILES} -f ${COMPOSE_FILE_KAFKA} "
169
- elif [ " ${CONSENSUS_TYPE} " == " etcdraft" ]; then
167
+ if [ " ${CONSENSUS_TYPE} " == " etcdraft" ]; then
170
168
COMPOSE_FILES=" ${COMPOSE_FILES} -f ${COMPOSE_FILE_RAFT2} "
171
169
fi
172
170
if [ " ${IF_COUCHDB} " == " couchdb" ]; then
@@ -179,12 +177,6 @@ function networkUp() {
179
177
exit 1
180
178
fi
181
179
182
- if [ " $CONSENSUS_TYPE " == " kafka" ]; then
183
- sleep 1
184
- echo " Sleeping 10s to allow $CONSENSUS_TYPE cluster to complete booting"
185
- sleep 9
186
- fi
187
-
188
180
if [ " $CONSENSUS_TYPE " == " etcdraft" ]; then
189
181
sleep 1
190
182
echo " Sleeping 15s to allow $CONSENSUS_TYPE cluster to complete booting"
@@ -222,9 +214,7 @@ function upgradeNetwork() {
222
214
export BYFN_CA1_PRIVATE_KEY=$( cd crypto-config/peerOrganizations/org1.example.com/ca && ls * _sk)
223
215
export BYFN_CA2_PRIVATE_KEY=$( cd crypto-config/peerOrganizations/org2.example.com/ca && ls * _sk)
224
216
fi
225
- if [ " ${CONSENSUS_TYPE} " == " kafka" ]; then
226
- COMPOSE_FILES=" ${COMPOSE_FILES} -f ${COMPOSE_FILE_KAFKA} "
227
- elif [ " ${CONSENSUS_TYPE} " == " etcdraft" ]; then
217
+ if [ " ${CONSENSUS_TYPE} " == " etcdraft" ]; then
228
218
COMPOSE_FILES=" ${COMPOSE_FILES} -f ${COMPOSE_FILE_RAFT2} "
229
219
fi
230
220
if [ " ${IF_COUCHDB} " == " couchdb" ]; then
@@ -274,8 +264,7 @@ function upgradeNetwork() {
274
264
# Tear down running network
275
265
function networkDown() {
276
266
# stop org3 containers also in addition to org1 and org2, in case we were running sample to add org3
277
- # stop kafka and zookeeper containers in case we're running with kafka consensus-type
278
- docker-compose -f $COMPOSE_FILE -f $COMPOSE_FILE_COUCH -f $COMPOSE_FILE_KAFKA -f $COMPOSE_FILE_RAFT2 -f $COMPOSE_FILE_CA -f $COMPOSE_FILE_ORG3 down --volumes --remove-orphans
267
+ docker-compose -f $COMPOSE_FILE -f $COMPOSE_FILE_COUCH -f $COMPOSE_FILE_RAFT2 -f $COMPOSE_FILE_CA -f $COMPOSE_FILE_ORG3 down --volumes --remove-orphans
279
268
280
269
# Don't remove the generated artifacts -- note, the ledgers are always removed
281
270
if [ " $MODE " != " restart" ]; then
@@ -425,8 +414,6 @@ function generateChannelArtifacts() {
425
414
set -x
426
415
if [ " $CONSENSUS_TYPE " == " solo" ]; then
427
416
configtxgen -profile TwoOrgsOrdererGenesis -channelID byfn-sys-channel -outputBlock ./channel-artifacts/genesis.block
428
- elif [ " $CONSENSUS_TYPE " == " kafka" ]; then
429
- configtxgen -profile SampleDevModeKafka -channelID byfn-sys-channel -outputBlock ./channel-artifacts/genesis.block
430
417
elif [ " $CONSENSUS_TYPE " == " etcdraft" ]; then
431
418
configtxgen -profile SampleMultiNodeEtcdRaft -channelID byfn-sys-channel -outputBlock ./channel-artifacts/genesis.block
432
419
else
@@ -495,8 +482,6 @@ COMPOSE_FILE=docker-compose-cli.yaml
495
482
COMPOSE_FILE_COUCH=docker-compose-couch.yaml
496
483
# org3 docker compose file
497
484
COMPOSE_FILE_ORG3=docker-compose-org3.yaml
498
- # kafka and zookeeper compose file
499
- COMPOSE_FILE_KAFKA=docker-compose-kafka.yaml
500
485
# two additional etcd/raft orderers
501
486
COMPOSE_FILE_RAFT2=docker-compose-etcdraft2.yaml
502
487
# certificate authorities compose file
0 commit comments