Closed eembsen closed 5 years ago
Hi, I'm currently travelling. I will look into your PR in a couple of days. Please ignore the "failed checked" in meantime.
Thank you @eembsen ,
I updated my Dockerfile
according to your entrypoint definition in the commit, and it works perfectly from the local connection!
Hi, What is the usecase? Are you running this container in a server and want it to be accessible from outside or are you claiming that it doesn't work because it is not accessible from the host machine running docker?
While I like the idea of using entrypoint instead of cmd I don't think it should bind to 0.0.0.0 by default.
It would be a huge security issue when people are walking around with laptops that have open database clients running and accessible to anyone in the same network.
I propose to remove --host=0.0.0.0
and when you really need to bind to all network interfaces then you run the container like this:
docker run -it --rm -p 8080:8080 -p 25482:25482 taivokasper/omnidb --host=0.0.0.0
What do you think?
I just noticed that this container has been broken since OmniDb 2.11.0. I'll do a new release after merging this PR under tag v2.11.0-alpine_3.8-1.
I will also add some basic tests for this image
I added the --host param because OmniDB starts by default on 127.0.0.1, whereas it needs to bind on 0.0.0.0 to be accessible from outside.