You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by dr...@apache.org on 2017/12/12 00:36:28 UTC

[incubator-openwhisk-devtools] branch master updated: Add kafka-topics-ui and kafka-rest images (#68)

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

dragos pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-devtools.git


The following commit(s) were added to refs/heads/master by this push:
     new 324d3df  Add kafka-topics-ui and kafka-rest images (#68)
324d3df is described below

commit 324d3df902b4b9b1bae1dd7f2dc580d9e6274ae0
Author: Chetan Mehrotra <ch...@apache.org>
AuthorDate: Tue Dec 12 06:06:26 2017 +0530

    Add kafka-topics-ui and kafka-rest images (#68)
---
 docker-compose/Makefile           |  2 +-
 docker-compose/README.md          |  1 +
 docker-compose/docker-compose.yml | 29 +++++++++++++++++++++++++++++
 3 files changed, 31 insertions(+), 1 deletion(-)

diff --git a/docker-compose/Makefile b/docker-compose/Makefile
index b59263a..9967078 100644
--- a/docker-compose/Makefile
+++ b/docker-compose/Makefile
@@ -82,7 +82,7 @@ print-host:
 .PHONY: check-required-ports
 check-required-ports:
 	echo "checking required ports ... "
-	for port in 80 443 2888 5984 8085 8888 9092 2888; do \
+	for port in 80 443 2888 5984 8085 8888 9092 2888 8001; do \
 		pid=`lsof -Pi :$$port -sTCP:LISTEN -t` ; \
 		if [ ! -z "$$pid" ];  then echo "$$(tput setaf 1)Port $$port is taken by PID:$$pid.$$(tput sgr0)"; exit 1; fi; \
 	done
diff --git a/docker-compose/README.md b/docker-compose/README.md
index 42f68c2..02e24f9 100644
--- a/docker-compose/README.md
+++ b/docker-compose/README.md
@@ -24,6 +24,7 @@ These ports must be available:
 - `8085` for OpenWhisk's Invoker
 - `8888` for OpenWhisk's Controller
 - `9092` for Kafka
+- `8001` for Kafka Topics UI
 
 # Quick Start
 
diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml
index d268d3d..94c813a 100644
--- a/docker-compose/docker-compose.yml
+++ b/docker-compose/docker-compose.yml
@@ -143,3 +143,32 @@ services:
     ports:
       - "80:80"
       - "443:443"
+
+  kafka-rest:
+    image: confluentinc/cp-kafka-rest:3.3.1
+    hostname: kafka-rest
+    environment:
+      - ACCESS_CONTROL_ALLOW_ORIGIN_DEFAULT="*"
+      - KAFKA_REST_ZOOKEEPER_CONNECT=zookeeper:2181
+      - KAFKA_REST_HOST_NAME=kafka-rest
+      - KAFKA_REST_LISTENERS=http://kafka-rest:8082
+      - KAFKA_REST_CONSUMER_REQUEST_TIMEOUT_MS=30000
+      - KAFKA_REST_BOOTSTRAP_SERVERS=PLAINTEXT://kafka:9092
+    links:
+      - zookeeper
+      - kafka
+    depends_on:
+      - zookeeper
+      - kafka
+
+  kafka-topics-ui:
+      image: landoop/kafka-topics-ui:0.9.3
+      environment:
+        - KAFKA_REST_PROXY_URL=http://kafka-rest:8082
+        - KAFKA_REST_BOOTSTRAP_SERVERS=PLAINTEXT://kafka:9092
+        - PROXY=true
+      ports:
+        - 8001:8000
+      links:
+        - kafka
+        - kafka-rest
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].