-
Notifications
You must be signed in to change notification settings - Fork 9
remove redundant ARG, add build command to readme, build using nproc processes #4
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
Conversation
poke @rvianello for review |
@@ -79,7 +80,6 @@ RUN initdb -D /opt/RDKit-build/pgdata \ | |||
&& pg_ctl -D /opt/RDKit-build/pgdata stop | |||
|
|||
|
|||
ARG postgres_image_version=16.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no need to set it again here since this VAR goes out of scope when the next FROM block starts.
And the top level definition takes effect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to know, thanks!
Hi @matter-it-does, thanks a lot for this PR. I saw your comment on the other PR, but there is no description and I'm still unclear about what problem is solved by these changes. In particular, can you help me understand why the installation of |
@rvianello updated |
@matter-it-does thanks for updating the description. if you could briefly investigate the reason why you had to change that installation command, that would be great. I am honestly curious to understand why other people experienced errors and it always worked for me (and I actually seem to remember that I at some point was actually required to pin the package revision to get a version of the server-dev package that matched the postgres version from the parent docker image ..). |
I get Version 12.17* for postgresql-server-dev-12 was not found for both x86_64 and arm64 |
anything else I can provide ? |
@matter-it-does sorry about the slow reply, I might have some time to run a couple of tests either later today or during the weekend. |
I performed a couple of test run and I think the command is not misbehaving, it's just that the deb packages for the older (<12.19 in this case) revisions of the server dev package are no longer available.. So my question now is also about why would one want to built the docker image for a postgres minor version that is not the most current one, and whether using a mismatching revision of the server dev package is really a good idea... What about leaving the default behavior as it is, and maybe allow overriding it and dropping the pkg revision constraint based on a build argument? |
Ok got it. Thanks for the tests. |
Are the packages present in apt archive by any chance ? apt-archive.postgresql.org |
I thought the same, but when I tried looking for more packages from apt-archive I still couldn't find them. I'm wondering if older revisions are regularly removed, or if they are removed every time a patch release is motivated by a known vulnerability. |
thanks a lot @matter-it-does for this PR and the discussion about the installallation of the server-dev package. |
Uh oh!
There was an error while loading. Please reload this page.