Skip to content

Commit dc3d530

Browse files
committed
Insert sleeps before starting kafka in circleci
1 parent b93d5a2 commit dc3d530

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.circleci/config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
KAFKA_ADVERTISED_HOST_NAME: kafka1
2626
KAFKA_ADVERTISED_PORT: 9092
2727
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
28+
command:
29+
sleep 10 && ./start-kafka.sh
2830

2931
- image: wurstmeister/kafka:2.11-0.10.2.2
3032
name: kafka2
@@ -36,6 +38,8 @@ jobs:
3638
KAFKA_ADVERTISED_HOST_NAME: kafka2
3739
KAFKA_ADVERTISED_PORT: 9092
3840
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
41+
command:
42+
sleep 10 && ./start-kafka.sh
3943

4044
- image: wurstmeister/kafka:2.11-0.10.2.2
4145
name: kafka3
@@ -47,6 +51,8 @@ jobs:
4751
KAFKA_ADVERTISED_HOST_NAME: kafka3
4852
KAFKA_ADVERTISED_PORT: 9092
4953
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
54+
command:
55+
sleep 10 && ./start-kafka.sh
5056

5157
- image: wurstmeister/kafka:2.11-0.10.2.2
5258
name: kafka4
@@ -58,6 +64,8 @@ jobs:
5864
KAFKA_ADVERTISED_HOST_NAME: kafka4
5965
KAFKA_ADVERTISED_PORT: 9092
6066
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
67+
command:
68+
sleep 10 && ./start-kafka.sh
6169

6270
- image: wurstmeister/kafka:2.11-0.10.2.2
6371
name: kafka5
@@ -69,6 +77,8 @@ jobs:
6977
KAFKA_ADVERTISED_HOST_NAME: kafka5
7078
KAFKA_ADVERTISED_PORT: 9092
7179
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
80+
command:
81+
sleep 10 && ./start-kafka.sh
7282

7383
- image: wurstmeister/kafka:2.11-0.10.2.2
7484
name: kafka6
@@ -80,6 +90,8 @@ jobs:
8090
KAFKA_ADVERTISED_HOST_NAME: kafka6
8191
KAFKA_ADVERTISED_PORT: 9092
8292
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
93+
command:
94+
sleep 10 && ./start-kafka.sh
8395

8496
steps:
8597
- checkout
@@ -127,6 +139,8 @@ jobs:
127139
KAFKA_ADVERTISED_HOST_NAME: kafka1
128140
KAFKA_ADVERTISED_PORT: 9092
129141
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
142+
command:
143+
sleep 10 && ./start-kafka.sh
130144

131145
- image: wurstmeister/kafka:2.12-2.4.1
132146
name: kafka2
@@ -138,6 +152,8 @@ jobs:
138152
KAFKA_ADVERTISED_HOST_NAME: kafka2
139153
KAFKA_ADVERTISED_PORT: 9092
140154
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
155+
command:
156+
sleep 10 && ./start-kafka.sh
141157

142158
- image: wurstmeister/kafka:2.12-2.4.1
143159
name: kafka3
@@ -149,6 +165,8 @@ jobs:
149165
KAFKA_ADVERTISED_HOST_NAME: kafka3
150166
KAFKA_ADVERTISED_PORT: 9092
151167
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
168+
command:
169+
sleep 10 && ./start-kafka.sh
152170

153171
- image: wurstmeister/kafka:2.12-2.4.1
154172
name: kafka4
@@ -160,6 +178,8 @@ jobs:
160178
KAFKA_ADVERTISED_HOST_NAME: kafka4
161179
KAFKA_ADVERTISED_PORT: 9092
162180
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
181+
command:
182+
sleep 10 && ./start-kafka.sh
163183

164184
- image: wurstmeister/kafka:2.12-2.4.1
165185
name: kafka5
@@ -171,6 +191,8 @@ jobs:
171191
KAFKA_ADVERTISED_HOST_NAME: kafka5
172192
KAFKA_ADVERTISED_PORT: 9092
173193
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
194+
command:
195+
sleep 10 && ./start-kafka.sh
174196

175197
- image: wurstmeister/kafka:2.12-2.4.1
176198
name: kafka6
@@ -182,6 +204,8 @@ jobs:
182204
KAFKA_ADVERTISED_HOST_NAME: kafka6
183205
KAFKA_ADVERTISED_PORT: 9092
184206
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
207+
command:
208+
sleep 10 && ./start-kafka.sh
185209

186210
steps:
187211
- checkout

0 commit comments

Comments
 (0)