Skip to content
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

Closed
avinson opened this issue Jul 22, 2016 · 6 comments · Fixed by #1692
Closed

Dockerfile should set listen_addresses to '*' in pipelinedb.conf #1578

avinson opened this issue Jul 22, 2016 · 6 comments · Fixed by #1692
Assignees
Labels

Comments

@avinson
Copy link

avinson commented Jul 22, 2016

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.

@derekjn
Copy link
Contributor

derekjn commented Jul 23, 2016

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 pipeline-init, is that accurate?

@derekjn derekjn added the docker label Jul 23, 2016
@derekjn derekjn self-assigned this Jul 23, 2016
@avinson
Copy link
Author

avinson commented Jul 25, 2016

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.

@derekjn
Copy link
Contributor

derekjn commented Jul 25, 2016

@avinson it would definitely be useful for the project and we'd welcome a PR if you're up for it!

@ankoh
Copy link
Contributor

ankoh commented Nov 3, 2016

Hi @avinson @derekjn,
IMHO the PipelineDB docker image should behave similar to the Postgres one.
I thought of something like this:
https://gist.github.com/ankoh/3e31de2cf38140bddc82cb02512348be

That way, you can easily replace any existing Postgres container with a PipelineDB.

@derekjn
Copy link
Contributor

derekjn commented Nov 3, 2016

@ankoh thanks for sharing! We would still welcome a PR here if you'd like to put something together.

@ankoh
Copy link
Contributor

ankoh commented Nov 3, 2016

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants