Jump to content
reinaertvdc

Alpine / musl libc support

Recommended Posts

To the Hak5 staff, would you consider distributing Cloud C² binaries that will run in Alpine Linux, which is "built around musl libc and busybox" instead of glibc? Alpine uses only a fraction of the storage/ram of other Linux distro's, which is particularly interesting for Docker containers (and Alpine also has some additional security measures). Thank you for considering.

https://alpinelinux.org/about/

Share this post


Link to post
Share on other sites

If I do not compile my go apps in the alpine docker container I get the same error.  Here is the fix below.  Build a new container with this one additional line.

 

RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2

Enjoy.

  • Upvote 1

Share this post


Link to post
Share on other sites

Sorry for my slow response, I only got around to trying it out now. Adding your line works indeed, many thanks! My C² container now uses <20MB RAM, a fraction of what it used before, awesome!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...