File tree Expand file tree Collapse file tree 1 file changed +3
-18
lines changed Expand file tree Collapse file tree 1 file changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -172,25 +172,10 @@ jobs:
172
172
ports :
173
173
- 9092:9092
174
174
- 9093:9093
175
- environment :
176
- KAFKA_CFG_BROKER_ID : 1
177
- KAFKA_CFG_DELETE_TOPIC_ENABLE : ' true'
178
- KAFKA_CFG_ADVERTISED_HOST_NAME : ' localhost'
179
- KAFKA_CFG_ADVERTISED_PORT : ' 9092'
180
- KAFKA_CFG_ZOOKEEPER_CONNECT : zookeeper:2181
181
- KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE : ' true'
182
- KAFKA_CFG_MESSAGE_MAX_BYTES : ' 200000000'
183
- KAFKA_CFG_LISTENERS : ' PLAINTEXT://:9092,SASL_PLAINTEXT://:9093'
184
- KAFKA_CFG_ADVERTISED_LISTENERS : ' PLAINTEXT://localhost:9092,SASL_PLAINTEXT://localhost:9093'
185
- KAFKA_CFG_SASL_ENABLED_MECHANISMS : ' PLAIN,SCRAM-SHA-256,SCRAM-SHA-512'
175
+ environment : *environment
186
176
KAFKA_CFG_AUTHORIZER_CLASS_NAME : ' kafka.security.authorizer.AclAuthorizer'
187
- KAFKA_CFG_ALLOW_EVERYONE_IF_NO_ACL_FOUND : ' true'
188
- KAFKA_OPTS : " -Djava.security.auth.login.config=/opt/bitnami/kafka/config/kafka_jaas.conf"
189
- ALLOW_PLAINTEXT_LISTENER : yes
190
- entrypoint :
191
- - " /bin/bash"
192
- - " -c"
193
- - echo -e 'KafkaServer {\norg.apache.kafka.common.security.scram.ScramLoginModule required\n username="adminscram"\n password="admin-secret";\n org.apache.kafka.common.security.plain.PlainLoginModule required\n username="adminplain"\n password="admin-secret"\n user_adminplain="admin-secret";\n };' > /opt/bitnami/kafka/config/kafka_jaas.conf; /opt/bitnami/kafka/bin/kafka-configs.sh --zookeeper zookeeper:2181 --alter --add-config "SCRAM-SHA-256=[password=admin-secret-256],SCRAM-SHA-512=[password=admin-secret-512]" --entity-type users --entity-name adminscram; exec /entrypoint.sh /run.sh
177
+ entrypoint : *entrypoint
178
+ steps : *steps
194
179
195
180
workflows :
196
181
version : 2
You can’t perform that action at this time.
0 commit comments