pact-foundation / pact-js

JS version of Pact. Pact is a contract testing framework for HTTP APIs and non-HTTP asynchronous messaging systems.
https://pact.io
Other
1.63k stars 348 forks source link

GLIBC version issue from pact js vs beta node:14-slim, node:16-slim #888

Closed harris-linktree closed 1 year ago

harris-linktree commented 2 years ago

Software versions

Please provide at least OS and version of pact-js

Issue Checklist

Please confirm the following:

Expected behaviour

contract tests are running

Actual behaviour

complaints about GLIBC version from node 14/16 container. however, node-18 slim works as expected

    /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /app/node_modules/@pact-foundation/pact-core/build/Release/libpact_ffi.so)

Steps to reproduce

pact-demo.zip

1 download pact-demo.zip 2 unzip then go do unziped folder 3 run docker build --platform linux/amd64 -t test-pact-beta . (for mac m1) or run docker build -t test-pact-beta . 4 after build image, run docker run test-pact-beta

How can someone else reproduce this bug? same as above

Relevant log files

Please ensure you set logging to DEBUG and attach any relevant log files here (or link to a gist).

mefellows commented 2 years ago

Thanks @harris-linktree , much appreciated.

mefellows commented 2 years ago

OK so I took a look at this tonight and the reason is that we need a version of libc >= 2.29.

I've updated our official Docker guidance to clarify that. We'll also see if it's possible to link against a slightly older version to increase compatibility

mefellows commented 1 year ago

Closing - we now link to 2.24 as per the linked issue above.