Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ulfox/docker-mirrormaker2
Bootstrap MM2 docker containers
https://github.com/ulfox/docker-mirrormaker2
kafka mirrormaker
Last synced: about 2 months ago
JSON representation
Bootstrap MM2 docker containers
- Host: GitHub
- URL: https://github.com/ulfox/docker-mirrormaker2
- Owner: ulfox
- License: apache-2.0
- Created: 2021-09-19T16:40:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-19T21:07:52.000Z (over 3 years ago)
- Last Synced: 2024-06-21T19:10:21.340Z (7 months ago)
- Topics: kafka, mirrormaker
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Mirrormaker2
Bootstrap MM2 docker containers.
## Build
To create a Mirrormaker2 docker container first update the `versions` file
with the desried `KAFKA & JAVA` versions### Versions
Update file `versions` with the desired versions
```bash
KAFKA_VERSION="2.8.1"
JAVA_VERSION="11"
RELEASE_DATE="2021-09-19"
```### Build Mirrormaker2 Docker Container
make
#### Build logs
You can find build logs for debug under .build
```bash
$> ls .build/
kafka.log mirrormaker2-init.log mirrormaker2.log
```## Usage
We can configure and run MM2 with multiple ways
### Using a source mm2 properties file
version: '3'
services:
mm2:
image: local/mirrormaker2:latest
container_name: mirrormaker2
volumes:
- /path/to/my/kafka-mm2.properties:/opt/mm2/kafka-mm2.properties:ro### Using env variables
version: '3'
services:
mm2:
image: local/mirrormaker2:latest
container_name: mirrormaker2
env:
KMM2_SOME_KEY_1: SOME_VALUE_1
...
KMM2_SOME_KEY_N: SOME_VALUE_N**Example**
version: '3'
services:
mm2:
image: local/mirrormaker2:latest
container_name: mirrormaker2
environment:
KMM2_CLUSTERS: source, target
KMM2_BOOTSTRAP_SERVERS: PLAINTEXT://localhost:9092
...### Mixed Env and Source file
version: '3'
services:
mm2:
image: local/mirrormaker2:latest
container_name: mirrormaker2
env:
KMM2_SOME_KEY_1: SOME_VALUE_1
...
KMM2_SOME_KEY_N: SOME_VALUE_N
volumes:
- /path/to/my/kafka-mm2.properties:/opt/mm2/kafka-mm2.properties:ro**Example**
version: '3'
services:
mm2:
image: local/mirrormaker2:latest
container_name: mirrormaker2
environment:
KMM2_CLUSTERS: source, target
KMM2_BOOTSTRAP_SERVERS: PLAINTEXT://localhost:9092
volumes:
- ./mirrormaker2/example/kafka-mm2.properties:/opt/mm2/kafka-mm2.properties:ro