This is an automated email from the ASF dual-hosted git repository.

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 393ee7dd680 [docker][fix] add kafka file for p0 regression (#25522)
393ee7dd680 is described below

commit 393ee7dd680ef62489303cc1138ca72ee6e575fd
Author: XuJianxu <[email protected]>
AuthorDate: Tue Oct 17 03:39:18 2023 -0500

    [docker][fix] add kafka file for p0 regression (#25522)
---
 docker/thirdparties/docker-compose/kafka/kafka.env | 20 +++++++++++
 .../docker-compose/kafka/kafka.yaml.tpl            | 42 ++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/docker/thirdparties/docker-compose/kafka/kafka.env 
b/docker/thirdparties/docker-compose/kafka/kafka.env
new file mode 100644
index 00000000000..6c430af182e
--- /dev/null
+++ b/docker/thirdparties/docker-compose/kafka/kafka.env
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+DOCKER_ZOOKEEPER_EXTERNAL_PORT=12181
+DOCKER_KAFKA_EXTERNAL_PORT=19193
diff --git a/docker/thirdparties/docker-compose/kafka/kafka.yaml.tpl 
b/docker/thirdparties/docker-compose/kafka/kafka.yaml.tpl
new file mode 100644
index 00000000000..15c61d8d763
--- /dev/null
+++ b/docker/thirdparties/docker-compose/kafka/kafka.yaml.tpl
@@ -0,0 +1,42 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+version: "3"
+
+services:
+    doris--zookeeper:
+        image: wurstmeister/zookeeper
+        restart: always
+        container_name: doris--zookeeper
+        ports:
+            - ${DOCKER_ZOOKEEPER_EXTERNAL_PORT}:2181
+    doris--kafka:
+        image: wurstmeister/kafka 
+        restart: always
+        container_name: doris--kafka
+        depends_on:
+            - doris--zookeeper
+        ports:
+            - ${DOCKER_KAFKA_EXTERNAL_PORT}:19193
+        environment:
+            KAFKA_ZOOKEEPER_CONNECT: doris--zookeeper:2181/kafka
+            KAFKA_LISTENERS: PLAINTEXT://:19193
+            KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:19193
+            KAFKA_BROKER_ID: 1
+        volumes:
+            - /var/run/docker.sock:/var/run/docker.sock
+            
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to