|
52 | 52 |
|
53 | 53 | make clean build |
54 | 54 |
|
| 55 | +### Docker images |
| 56 | +
|
| 57 | +Docker images are available on [Docker Hub](https://hub.docker.com/r/grepplabs/kafka-proxy/tags). |
| 58 | +
|
| 59 | +You can launch a kafka-proxy container for trying it out with |
| 60 | +
|
| 61 | + docker run --rm -p 30001-30003:30001-30003 grepplabs/kafka-proxy:v0.2.6 \ |
| 62 | + server \ |
| 63 | + --bootstrap-server-mapping "localhost:19092,0.0.0.0:30001" \ |
| 64 | + --bootstrap-server-mapping "localhost:29092,0.0.0.0:30002" \ |
| 65 | + --bootstrap-server-mapping "localhost:39092,0.0.0.0:30003" \ |
| 66 | + --dial-address-mapping "localhost:19092,172.17.0.1:19092" \ |
| 67 | + --dial-address-mapping "localhost:29092,172.17.0.1:29092" \ |
| 68 | + --dial-address-mapping "localhost:39092,172.17.0.1:39092" \ |
| 69 | + --debug-enable |
| 70 | +
|
| 71 | +Kafka-proxy will now be reachable on `localhost:30001`, `localhost:30002` and `localhost:30003`, connecting to kafka brokers |
| 72 | +running in docker (network bridge gateway `172.17.0.1`) advertising PLAINTEXT listeners on `localhost:19092`, `localhost:29092` and `localhost:39092`. |
| 73 | +
|
| 74 | +### Docker images with precompiled plugins |
| 75 | +
|
| 76 | +Docker images with precompiled plugins located in `/opt/kafka-proxy/bin/` are tagged with `<release>-all`. |
| 77 | +
|
| 78 | +You can launch a kafka-proxy container with auth-ldap plugin for trying it out with |
| 79 | +
|
| 80 | + docker run --rm -p 30001-30003:30001-30003 grepplabs/kafka-proxy:v0.2.6-all \ |
| 81 | + server \ |
| 82 | + --bootstrap-server-mapping "localhost:19092,0.0.0.0:30001" \ |
| 83 | + --bootstrap-server-mapping "localhost:29092,0.0.0.0:30002" \ |
| 84 | + --bootstrap-server-mapping "localhost:39092,0.0.0.0:30003" \ |
| 85 | + --dial-address-mapping "localhost:19092,172.17.0.1:19092" \ |
| 86 | + --dial-address-mapping "localhost:29092,172.17.0.1:29092" \ |
| 87 | + --dial-address-mapping "localhost:39092,172.17.0.1:39092" \ |
| 88 | + --debug-enable \ |
| 89 | + --auth-local-enable \ |
| 90 | + --auth-local-command=/opt/kafka-proxy/bin/auth-ldap \ |
| 91 | + --auth-local-param=--url=ldap://172.17.0.1:389 \ |
| 92 | + --auth-local-param=--start-tls=false \ |
| 93 | + --auth-local-param=--bind-dn=cn=admin,dc=example,dc=org \ |
| 94 | + --auth-local-param=--bind-passwd=admin \ |
| 95 | + --auth-local-param=--user-search-base=ou=people,dc=example,dc=org \ |
| 96 | + --auth-local-param=--user-filter="(&(objectClass=person)(uid=%u)(memberOf=cn=kafka-users,ou=realm-roles,dc=example,dc=org))" |
| 97 | +
|
| 98 | +
|
55 | 99 | ### Help output |
56 | 100 |
|
57 | 101 | Run the kafka-proxy server |
|
0 commit comments