- There is no official docker image for Nakadi
- Published in docker hub registry: https://hub.docker.com/r/adyach/nakadi-docker
Download Nakadi and start its dependencies
./gradlew startStorages
Start Nakadi docker container using host
network (dependencies are running in host network)
docker run -e SPRING_PROFILES_ACTIVE=local -e NAKADI_OAUTH2_MODE=OFF --network=host adyach/nakadi-docker:latest
Start Nakadi with file based authz
docker run \
-e SPRING_PROFILES_ACTIVE=local \
-e NAKADI_OAUTH2_MODE=OFF \
-e NAKADI_PLUGINS_AUTHZ_FACTORY=org.crazycoder.nakadiauthzfileplugin.FileAuthorizationServiceFactory \
-p 8080:8080 -t adyach/nakadi-docker:latest
Note: authz config is used. it is not possible to configure UID of an oauth2 token, when running Nakadi in NAKADI_OAUTH2_MODE=OFF, that's why the UID is allways adminClientId
.
It should be possible to replace authz.json in container using -v
option docker volumes
Note: the setup was tested against integration smoke test
docker-compose up