Skip to content

bookworm-slim or alpine support? #51

Closed

Description

@ankurk91

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

Activity

  1. jeremiahlukus commented on Mar 18, 2025

    @jeremiahlukus
    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.

  2. metaskills commented on Mar 18, 2025

    @metaskills
    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?

  3. changed the title [-]Apline linux support?[/-] [+]Alpine linux support?[/+] on Mar 19, 2025
  4. ankurk91 commented on Mar 19, 2025

    @ankurk91
    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 😂

  5. ankurk91 commented on Mar 19, 2025

    @ankurk91
    Author

    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)

  6. ankurk91 commented on Mar 19, 2025

    @ankurk91
    Author

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

    Error from cloudwatch
    Image

  7. metaskills commented on Mar 19, 2025

    @metaskills
    Member

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

  8. ankurk91 commented on Mar 19, 2025

    @ankurk91
    Author

    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

  9. ankurk91 commented on Mar 20, 2025

    @ankurk91
    Author

    Found related issue

    rustls/hyper-rustls#187

  10. changed the title [-]Alpine linux support?[/-] [+]bookworm-slim or alpine support?[/+] on Mar 20, 2025
  11. ankurk91 commented on Mar 20, 2025

    @ankurk91
    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.

  12. metaskills commented on Mar 20, 2025

    @metaskills
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions