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

add libpq for multi-arch build configuration #7827

Closed
wants to merge 1 commit into from

Conversation

arowser
Copy link
Contributor

@arowser arowser commented Nov 16, 2024

add libpq for multi-arch build configuration

Fix #7649

Dockerfile Show resolved Hide resolved
Copy link
Contributor

@s373nZ s373nZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My prior comment was marked as resolved, but there were no code changes or explanation? Still seeing a build error. The rest of the PR looks like it should work, though.

Can you explain how you're testing this?

@arowser
Copy link
Contributor Author

arowser commented Dec 8, 2024 via email

@s373nZ
Copy link
Contributor

s373nZ commented Dec 8, 2024

What's your build error? The dockerfile use to crossbuild with qemu, but the libq not exists on arm environment, so I added the build steps for the libq library.

The error is related to wget downloading the source code, which produces the docker build error:

 ERROR [base-builder  6/12] RUN wget -q https://zlib.net/fossils/zlib-1.2.13.tar.gz -O zlib.tar.  8.9s
------
 > [base-builder  6/12] RUN wget -q https://zlib.net/fossils/zlib-1.2.13.tar.gz -O zlib.tar.gz &&     wget -q https://www.sqlite.org/2019/sqlite-src-3290000.zip -O sqlite.zip     wget -q https://ftp.postgresql.org/pub/source/v17.1/postgresql-17.1.tar.gz -O postgres.tar.gz:
------
Dockerfile:96
--------------------
  95 |
  96 | >>> RUN wget -q https://zlib.net/fossils/zlib-1.2.13.tar.gz -O zlib.tar.gz && \
  97 | >>>     wget -q https://www.sqlite.org/2019/sqlite-src-3290000.zip -O sqlite.zip \
  98 | >>>     wget -q https://ftp.postgresql.org/pub/source/v17.1/postgresql-17.1.tar.gz -O postgres.tar.gz
  99 |
--------------------
ERROR: failed to solve: process "/bin/sh -c wget -q https://zlib.net/fossils/zlib-1.2.13.tar.gz -O zlib.tar.gz &&     wget -q https://www.sqlite.org/2019/sqlite-src-3290000.zip -O sqlite.zip     wget -q https://ftp.postgresql.org/pub/source/v17.1/postgresql-17.1.tar.gz -O postgres.tar.gz" did not complete successfully: exit code: 4

As I mentioned in my initial review comment, it should be an easy fix, adding the && to the end of that line. Curious how you've tested this, though, if that is breaking.

@s373nZ
Copy link
Contributor

s373nZ commented Dec 8, 2024

Additionally, this PR needs the commit message updated to contain a Changelog-*: notation in the message body as described in this documentation to avoid the build failure here:

https://github.com/ElementsProject/lightning/actions/runs/11883516546/job/33110390750?pr=7827

@arowser
Copy link
Contributor Author

arowser commented Dec 8, 2024 via email

@s373nZ
Copy link
Contributor

s373nZ commented Dec 9, 2024

Not seeing any new changes. Did you forget to git push your updated code?

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

Successfully merging this pull request may close these issues.

Postgres driver not found in ARM64 and ARM32 Docker images
2 participants