Skip to content

Allow KAFKA_REST_INSTANCE_ID_VARIABLE which will be deferenced #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

tdooner
Copy link

@tdooner tdooner commented May 6, 2015

Hey, I figure you weren't intending for someone to find your kafka-rest docker project, but it's actually doing pretty well for itself as a google result for "kafka-rest docker".

Anyway, we run our Docker stuff using Marathon, which provides a MESOS_TASK_ID variable that I'd like to use for the instance ID. I added this little hack to allow starting the container like --env KAFKA_REST_INSTANCE_ID_VARIABLE=MESOS_TASK_ID and then the bash script dereferences it to set the instance ID to the value of MESOS_TASK_ID. It works pretty well for me.

Dunno if you want this or not, but here it is anyway. Cheers!

For instance, if you're running this on Marathon where you get a
MESOS_TASK_ID variable, you can pass in
`KAFKA_REST_INSTANCE_ID_VARIABLE=MESOS_TASK_ID` which will then be
deferenced to set `KAFKA_REST_INSTANCE_ID=[value of $MESOS_TASK_ID]`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant