Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

Get rid of bash hacking in kafka image #22

Open
krallistic opened this issue May 12, 2017 · 0 comments
Open

Get rid of bash hacking in kafka image #22

krallistic opened this issue May 12, 2017 · 0 comments

Comments

@krallistic
Copy link
Owner

krallistic commented May 12, 2017

Currently there is a quite some ugly bash code hacking in the kafka image to set advertised listener and broker id correctly.

Command: []string{"/bin/bash",
"-c",
fmt.Sprintf("export KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://$(hostname).%s.$(NAMESPACE).svc.cluster.local:9092; \n"+
"set -ex\n"+
"[[ `hostname` =~ -([0-9]+)$ ]] || exit 1\n"+
"export KAFKA_BROKER_ID=${BASH_REMATCH[1]}\n"+
"/etc/confluent/docker/run", name),

This could be solved better?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant