Skip to content

bookworm-slim or alpine support? #51

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

Closed
ankurk91 opened this issue Mar 18, 2025 · 10 comments
Closed

bookworm-slim or alpine support? #51

ankurk91 opened this issue Mar 18, 2025 · 10 comments

Comments

@ankurk91
Copy link

ankurk91 commented Mar 18, 2025

This is a great project. Awesome job.

I was reading the docs and found it supports binary for Ubuntu and Amazon linux.

But most of developers are using alpine image as base.
Does this project support Apline linux (musl)?

Thanks in advance

@jeremiahlukus
Copy link
Contributor

Most of the images I use are debian based (ruby- slim, bookworm, bullseye etc..).

Did you try and run into any issues?
If you find an issue running on Apline feel free to post it here I can look into it when i get to it or feel free to send a PR.

@metaskills
Copy link
Member

Yup, AFAICT, it should work just fine on almost anything. There are no linked dependencies. I guess there could be some odd libc issues at some level too?

@ankurk91 ankurk91 changed the title Apline linux support? Alpine linux support? Mar 19, 2025
@ankurk91
Copy link
Author

Ok i will try this in Apline linux image.

I posted this issue from my phone and the auto correct made Alpine linux to Apline 😂

@ankurk91
Copy link
Author

ankurk91 commented Mar 19, 2025

I am getting this error

{
  "errorType": "Extension.LaunchError",
  "errorMessage": "RequestId: 33d02996-e916-4760-8ca7-fc63f881333c Error: fork/exec /opt/extensions/crypteia: exec format error"
}

I am using alpine image as base (node:22-alpine)

@ankurk91
Copy link
Author

ankurk91 commented Mar 19, 2025

I tried in this in node:22-bookworm, it worked, but not in node:22-bookworm-slim, strange

Error from cloudwatch
Image

@metaskills
Copy link
Member

Perhaps that is fixed with a package install? If so, we can easily document that vs adding more to the existing dist files.

@ankurk91
Copy link
Author

ankurk91 commented Mar 19, 2025

I am not sure which package is missing.
Looks like something related to CA certificates

Found it is installed already in image

https://github.com/nodejs/docker-node/blob/ebe23e5c54d2a598a3460a67fb1f633bb18a8dd8/22/bookworm-slim/Dockerfile#L20

@ankurk91
Copy link
Author

Found related issue

rustls/hyper-rustls#187

@ankurk91 ankurk91 changed the title Alpine linux support? bookworm-slim or alpine support? Mar 20, 2025
@ankurk91
Copy link
Author

RUN apt-get update && apt-get install -y --no-install-recommends \
    ca-certificates \
    && update-ca-certificates \
    && rm -rf /var/lib/apt/lists/*

This did the trick, public.ecr.aws/docker/library/node:22-bookworm-slim worked for me.

@metaskills
Copy link
Member

Cool, I added this to the Usage -> Troubleshooting section here. https://github.com/rails-lambda/crypteia/tree/main?tab=readme-ov-file#troubleshooting

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