-
Notifications
You must be signed in to change notification settings - Fork 242
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
Dockerfile should set listen_addresses to '*' in pipelinedb.conf #1578
Comments
Hi @avinson, thanks for the thoughtful suggestion! Just so I can understand this before determining what the best thing to do is, can you clarify what you mean by initializing the Docker image from scratch? I'm assuming you mean starting the PipelineDB container and manually running |
I'll try to clarify a bit.. typically when you are running a service in docker, you don't want to only listen on localhost since you can manage network settings with runtime configuration settings to the docker daemon. I would recommend a couple things:
This may have more complexity than you guys need but there's some useful concepts in there. Notice how they modify pg_hba.conf to trust 0.0.0.0/0 by default. The way the pipelinedb docker image currently works, it's unusable by default -- you must first start the container, then manually edit pg_hba.conf and pipelinedb.conf and then restart it before you can connect. I'd be happy to take a stab at a PR for this stuff above if you think it would be useful to the project. |
@avinson it would definitely be useful for the project and we'd welcome a PR if you're up for it! |
Hi @avinson @derekjn, That way, you can easily replace any existing Postgres container with a PipelineDB. |
@ankoh thanks for sharing! We would still welcome a PR here if you'd like to put something together. |
@derekjn Sure, I'll push a PR tomorrow. I've first tried to build an alpine based image this morning (which would definitely be more favourable), but you get a tiny problem in 1. Alpine Linux ships with musl libc instead of glibc which leads to unresolved symbols of execinfo.h (backtrace and backtrace_symbols 2). I think that could be patched quite easily. |
Initializing the docker image from scratch results in a pipelinedb instance that only listens on localhost and the pipelinedb.conf must be manually edited to fix this. I suggest adding a parameter to the docker init scripts to allow changing this or else listen on '*' by default when running using docker.
The text was updated successfully, but these errors were encountered: