Skip to content

Commit

Permalink
Merge pull request #13 from smartcitiesdata/custom_kafka_version
Browse files Browse the repository at this point in the history
support configured kafka version
  • Loading branch information
bbalser authored Aug 22, 2019
2 parents f1dc0af + 71d270e commit 632a143
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/divo_kafka.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ defmodule DivoKafka do
topics = Keyword.get(envars, :create_topics, "clusterready:1:1")
host = Keyword.get(envars, :outside_host, "localhost")
auto_create_topics = Keyword.get(envars, :auto_topic, true)
kafka_image_version = Keyword.get(envars, :kafka_image_version, "latest")

check_topic =
topics
Expand All @@ -36,7 +37,7 @@ defmodule DivoKafka do
}
},
kafka: %{
image: "wurstmeister/kafka:latest",
image: "wurstmeister/kafka:#{kafka_image_version}",
ports: ["9092:9092"],
environment: [
"KAFKA_AUTO_CREATE_TOPICS_ENABLE=#{auto_create_topics}",
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule DivoKafka.MixProject do
def project do
[
app: :divo_kafka,
version: "0.1.5",
version: "0.1.6",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
Expand Down

0 comments on commit 632a143

Please sign in to comment.