Skip to content

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