|
2 | 2 |
|
3 | 3 | Docker image of [yahoo/CMAK](https://github.com/yahoo/CMAK). |
4 | 4 |
|
5 | | -## Testing and Development |
| 5 | +This repository builds and publishes a Docker image for CMAK (Cluster Manager for Apache Kafka, previously known as Kafka Manager). |
6 | 6 |
|
7 | | -Some tests are provided in [tests/](tests/). |
| 7 | +## Version |
8 | 8 |
|
9 | | -A `docker-compose.yaml` is provided with Zookeeper and Kafka. Once running a cluster can be added by setting the "Cluster Zookeeper Hosts" to `zk:2181`. |
| 9 | +* CMAK: `3.0.0.6` |
| 10 | + |
| 11 | +## Usage |
| 12 | + |
| 13 | +### Running with Docker |
| 14 | + |
| 15 | +To run the image: |
| 16 | +```bash |
| 17 | +docker run -p 9000:9000 -e ZK_HOSTS=your_zookeeper_hosts panubo/cmak |
| 18 | +``` |
| 19 | +The CMAK web interface will be available at http://localhost:9000. |
| 20 | + |
| 21 | +### Development Environment |
| 22 | + |
| 23 | +A `docker-compose.yaml` is provided for a quick development and test setup. It includes Zookeeper, Kafka, and the CMAK image. |
| 24 | + |
| 25 | +To start the services: |
| 26 | +```bash |
| 27 | +docker-compose up |
| 28 | +``` |
| 29 | +Once running, you can add a new cluster in the CMAK UI. |
| 30 | +* **Cluster Zookeeper Hosts:** `zk:2181` |
| 31 | + |
| 32 | +## Building the Image |
| 33 | + |
| 34 | +To build the Docker image locally, you can use the provided Makefile: |
| 35 | +```bash |
| 36 | +make build |
| 37 | +``` |
| 38 | + |
| 39 | +## Configuration |
| 40 | + |
| 41 | +The CMAK instance can be configured using environment variables. The primary variable is `ZK_HOSTS` to point to your Zookeeper ensemble. |
| 42 | + |
| 43 | +| Environment Variable | Description | Default | |
| 44 | +| -------------------- | -------------------------------- | --------- | |
| 45 | +| `ZK_HOSTS` | Zookeeper hosts for CMAK to use. | `zk:2181` (in docker-compose) | |
| 46 | + |
| 47 | +## Testing |
| 48 | + |
| 49 | +The project includes a test suite using `bats`. The tests are located in the `tests/` directory. |
| 50 | + |
| 51 | +To run the tests: |
| 52 | +```bash |
| 53 | +make test |
| 54 | +``` |
| 55 | + |
| 56 | +## CI/CD |
| 57 | + |
| 58 | +This repository uses GitHub Actions to automatically build and publish multi-arch (`linux/amd64`, `linux/arm64`) Docker images to: |
| 59 | + |
| 60 | +* `quay.io/panubo/cmak` |
| 61 | +* `public.ecr.aws/panubo/cmak` |
| 62 | + |
| 63 | +Images are tagged based on git branches and tags. |
| 64 | + |
| 65 | +## Status |
| 66 | + |
| 67 | +Stable and production ready. |
0 commit comments