Jump to content

Alpine / musl libc support


reinaertvdc

Recommended Posts

Posted

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/

Posted

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.

  • 1 month later...
Posted

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!

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...