File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,18 @@ banner() {
15
15
usage () {
16
16
echo " Usage: $0 [options]" 1>&2 && \
17
17
echo -e " \t -b \t: Build project and the Docker image." 1>&2 && \
18
+ echo -e " \t -s \t: Number of connect workers (default: 2)." 1>&2 && \
18
19
echo -e " \t -h\t: Print this Help." 1>&2 ; exit 1;
19
20
}
20
21
21
22
banner
22
23
23
24
BUILD=" false"
24
- while getopts " bh" o; do
25
+ SCALE=2
26
+ while getopts " bhs:" o; do
25
27
case " ${o} " in
26
28
b) BUILD=" true" ;;
29
+ s) SCALE=" ${OPTARG} " ;;
27
30
h|* )
28
31
usage
29
32
;;
@@ -39,7 +42,7 @@ echo -e "\n🐳 Stopping previous Kafka Docker-Compose stack..."
39
42
(cd " $BASEDIR " ; docker-compose -f ./docker-compose-debug.yml down)
40
43
41
44
echo -e " \n🐳 Starting Kafka Docker-Compose stack..."
42
- (cd " $BASEDIR " ; docker-compose -f ./docker-compose-debug.yml up -d --scale connect=2 )
45
+ (cd " $BASEDIR " ; docker-compose -f ./docker-compose-debug.yml up -d --scale connect=$SCALE )
43
46
44
47
echo -e " \n⏳ Waiting for Kafka Connect..."
45
48
CONNECT_URL=http://localhost:80/connectors
You can’t perform that action at this time.
0 commit comments