-
Notifications
You must be signed in to change notification settings - Fork 50
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
Docker image #53
base: main
Are you sure you want to change the base?
Docker image #53
Conversation
For context reference, the reason that we can't build hydra using pgxman as part of its CI is due to the intricate limitation of pgxman's publication mechanism. It necessitates the existence and publication of the buildkit file in a central repo pgxman/buildkit, which in turn refers to a tag for source download. This creates a circular dependency, where the tagging of an extension requires pgxman to build the buildkit artifacts, but the build artifacts require the tag to exist first. This can be worked around now by:
When we can self-publish extensions from individual repo in the future, the circular dependency will be broken, and this workaround will no longer be necessary. |
heya @owenthereal, sorry for the lack of context, I added you here in part because of pgxman but also because I'm a bit of a noob when it comes to Docker so I wanted you to check my work, if you had any suggestions for improvement. For instance I'm current creating a I do think it would be possible to build with pgxman based on the docs here, as you suggest a buildkit yaml would be needed as well. IMO this would just be for making "dev builds" as desired, though for local testing the duckdb build takes a long time and the ccache setup seems to not work super well, so it's not a great local developer tool. |
You could run a specific target with https://docs.docker.com/reference/cli/docker/image/build/#target, e.g.
Not saying we should replace this Docker build with pgxman build right now, but being able to specify cache dir would be a nice pgxman feature to add in the future. |
a811b49
to
d9167ef
Compare
d9167ef
to
d2fdfec
Compare
d2fdfec
to
26d23b4
Compare
this is what ultimately worked for me:
|
I would love to install pg_duckdb in our Postgres Docker image. I tried the Dockerfile from above, but it was stuck at 100% at |
Took a very long time to run for me too. Might have been more than 30 minutes before it was complete. |
Thanks @mike-luabase, that's good to know. |
To make the build faster it would help a lot if you changed the |
c38f089
to
4419031
Compare
Even after #211, there remains an issue with
This is despite the fact we are using |
7d442d8
to
0801d3f
Compare
43afc2c
to
99b8660
Compare
9e9eb02
to
2523a1c
Compare
2523a1c
to
31c068d
Compare
9f80ff1
to
02f93cd
Compare
Starting point for a Postgres image with pg_duckdb installed.