Skip to content

Commit

Permalink
kafka changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Mautsch committed Oct 3, 2023
1 parent 967e73f commit 42e07e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,5 @@ docker run --pull always --name event-dispatcher-service-native --rm -p50500:505
docker run --rm -p15672:15672 -p5672:5672 --name rabbitmq -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=admin rabbitmq:3.11.5-management

# kafka
docker run --rm --name zookeeper -p 2181:2181 -e 'ZOOKEEPER_CLIENT_PORT=2181' -e'ZOOKEEPER_TICK_TIME=2000' confluentinc/cp-zookeeper:7.3.1 &;\
docker run --rm --name kafka -p 9092:9092 \
-e 'KAFKA_BROKER_ID=1' -e 'KAFKA_ZOOKEEPER_CONNECT=host.docker.internal:2181' -e 'KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT,PLAINTEXT_INTERNAL:PLAINTEXT' \
-e 'KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092,PLAINTEXT_INTERNAL://broker:29092' \
-e 'KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1' -e 'KAFKA_TRANSACTION_STATE_LOG_MIN_ISR=1' -e 'KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR=1' \
confluentinc/cp-kafka:7.3.1; docker stop zookeeper
docker run --rm --name kafka -p 9092:9092 -e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092 quay.io/ogunalp/kafka-native:0.4.0-kafka-3.5.1

2 changes: 1 addition & 1 deletion src/deploy/docker/.values
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ _Values_resources_entrypoint_native="/app/application -Xmx32m"

_Values_health_check_disabled=false

_Values_profile=kafka #kafka
_Values_profile=rabbitmq #kafka
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spring:
adapter.fhir.url: "http://localhost:50300/fhir/r4"

#enable kafka or rabbitmq
spring.profiles.active: kafka
spring.profiles.active: rabbitmq

#logging
logging.level.root: "WARN"
Expand Down

0 comments on commit 42e07e3

Please sign in to comment.