-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error running the bridge as Docker container #452
Comments
I got the same error with you. Have any update? |
It is possible to run the bridge with: Unfortunately it's not possible to configure the bridge via environment variables (e.g. JAVA_OPTS). So I decided to mount a custom application.properties with the correct kafka.bootstrap.server. This is my docker-compose.yml (...from the Quarkus docs)
And my ./kafka-bridge/application.properties file:
|
Trying to run the bridge just as Docker container outside of Kubernetes gets the following error:
Of course, that's because it needs the
--config-file
parameter with the configuration properties file.Anyway even providing it, gets the following error:
Even in this case the problem seems to be clear. We are using
CMD
in the Docker file, instead ofENTRYPOINT
so the argument passed on thedocker run
is got as the command to run and not as a parameter for the entrypoint.I already built a custom image using
ENTRYPOINT
instead ofCMD
and the above command works fine allowing the bridge to start as a Docker container.This change should not have any impact on how the Strimzi operator deploys the bridge because it's going anyway to override the Kubernetes
command
with the corresponding Docker script (Kubernetescommand
is the counterpart of Docker ENTRYPOINT while Kubernetesargs
should be counterpart of Docker CMD).I am ready to open a PR for this change, any more thoughts or considerations? @strimzi/maintainers
The text was updated successfully, but these errors were encountered: