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

Linux alpine. Can't compare images - empty error #55

Open
pashidlos opened this issue Jul 16, 2021 · 2 comments
Open

Linux alpine. Can't compare images - empty error #55

pashidlos opened this issue Jul 16, 2021 · 2 comments

Comments

@pashidlos
Copy link

docker image node:12.18.4-alpine
odiff-bin 2.4.1

api_1        | [Nest] 25   - 07/15/2021, 3:59:59 PM   Object:
api_1        | {}
api_1        |  +31481ms
api_1        | Error
api_1        |     at ChildProcess.<anonymous> (/node_modules/odiff-bin/odiff.js:134:13)
api_1        |     at ChildProcess.emit (events.js:327:22)
api_1        |     at maybeClose (internal/child_process.js:1021:16)
api_1        |     at Socket.<anonymous> (internal/child_process.js:443:11)
api_1        |     at Socket.emit (events.js:315:20)
api_1        |     at Pipe.<anonymous> (net.js:674:12)
@Klaster1
Copy link

Klaster1 commented Mar 8, 2023

For those with the same issue, using a Debian-based node image instead of an Alpine-based was a reasonable workaround. I'd at least mention the compatibility issue in the readme so people know about this beforehand.

@Gogibahp
Copy link

Not sure if this entirely solves the issue but I was able to get odiff running on alpine by installing glib in the image.

RUN apk update && \
    apk add --no-cache bash curl

RUN apk add --no-cache \
    libc6-compat

Afterwards I just copied the odiff linux binary into my docker image and ran chmod to make sure that the binary could be executed.

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

No branches or pull requests

3 participants