mesos / kafka

Apache Kafka on Apache Mesos
Apache License 2.0
414 stars 140 forks source link

Initial support for running in docker images #281

Closed steveniemitz closed 7 years ago

steveniemitz commented 7 years ago

This adds basic support for launching broker in docker containers. Two options are supported, docker images via the Docker Containerizer, and a docker image as the rootfs via the Mesos Containerizer + docker image provider.

Configuration is per-broker, and 4 new flags to broker add/update have been introduced:

Flag Description
--container-type This can be either mesos or docker, and sets which containerizer to launch the broker with.
--container-image The docker image to use as the root filesystem
--container-mounts A list of mount points to mount into the container

--container-mounts should be in the form of host_path:container_path:mode[,...] where mode is either rw or ro.

Note: The container must be able to support loading the mesos executor library, which mean libmesos (and its dependencies) must be somewhere in the library search path, or mounted into the container.

Tracking ticket: #270