Skip to content

Commit

Permalink
Updated Kafka to default bitnami container
Browse files Browse the repository at this point in the history
Added scnd kafka listener for localhost

Signed-off-by: Marcel Wagner <[email protected]>
  • Loading branch information
wagmarcel authored and arkocal committed Apr 2, 2019
1 parent f1aad93 commit a1f1099
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 176 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ endif
mkdir -p data/keys/mqtt; \
openssl rand -base64 16 > data/keys/mqtt/mqtt_gw_secret.key; \
fi;

@if [ -f data/kafka ]; then echo "Kafka persitence dir existing already. Skipping creating new dir"; else \
echo "Creating kafka folder"; \
mkdir -p data/kafka; \
chmod 777 data/kafka; \
fi;
@touch $@

## build: Build OISP images locally.
Expand Down
22 changes: 11 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,21 @@ services:
- POSTGRES_USER=${POSTGRES_USERNAME}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
kafka:
image: oisp/kafka:${DOCKER_TAG}
build:
context: ./docker-kafka/
labels:
- oisp=true
- oisp.git_commit=${GIT_COMMIT_PLATFORM_LAUNCHER}
image: bitnami/kafka:1.1.1
ports:
- 9092:9092
- 9093:9093
- 9092:9093
depends_on:
- zookeeper
environment:
- ADVERTISED_HOST=${HOST_IP_ADDRESS}
- ADVERTISED_PORT=${KAFKA_PORT}
- AUTO_CREATE_TOPICS=true
- ZK_CONNECT=${ZOOKEEPER_KAFKA}:${ZOOKEEPER_KAFKA_PORT}
- KAFKA_ZOOKEEPER_CONNECT=${ZOOKEEPER_KAFKA}:${ZOOKEEPER_KAFKA_PORT}
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_LISTENERS=LISTENER_BOB://0.0.0.0:9092,LISTENER_FRED://0.0.0.0:9093
- KAFKA_ADVERTISED_LISTENERS=LISTENER_BOB://kafka:9092,LISTENER_FRED://localhost:9093
- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=LISTENER_BOB:PLAINTEXT,LISTENER_FRED:PLAINTEXT
- KAFKA_INTER_BROKER_LISTENER_NAME=LISTENER_BOB
volumes:
- ./data/kafka:/bitnami/kafka
redis:
image: redis:3.0
volumes:
Expand Down
36 changes: 0 additions & 36 deletions docker-kafka/Dockerfile

This file was deleted.

90 changes: 0 additions & 90 deletions docker-kafka/scripts/start-kafka.sh

This file was deleted.

5 changes: 0 additions & 5 deletions docker-kafka/supervisor/kafka.conf

This file was deleted.

29 changes: 0 additions & 29 deletions docker-kafka/supervisor/supervisord.conf

This file was deleted.

4 changes: 0 additions & 4 deletions docker-kafka/supervisor/zookeeper.conf

This file was deleted.

0 comments on commit a1f1099

Please sign in to comment.