Musl docker images #912

Open
opened 2025-07-25 22:15:57 +00:00 by Jade · 0 comments
Owner

So continuwuity historically provided static binaries built using Nix. Unfortunately due to changes in the build, that no longer works for cross compilation - and the team doesn't have the Nix knowledge to maintain it. Instead we want to build the binary using docker, building on our existing dynamic binary pipeline.

We want to build statically linked musl binaries. For that we need the static version of at least liburing built against musl, possibly some other stuff. Debian doesn't provide this. I've tried running a build process on alpine - unfortunately something in the build of our process needs to dynamically link stuff that doesn't work on alpine.

So what needs to happen is you need to update the main debian build image to switch between glibc and musl binaries - when building for glibc, do the process we already have in place. When building for musl, copy the libraries from an alpine container and configure package config to find the system dependencies there

See also:

#911
#740

So continuwuity historically provided static binaries built using Nix. Unfortunately due to changes in the build, that no longer works for cross compilation - and the team doesn't have the Nix knowledge to maintain it. Instead we want to build the binary using docker, building on our existing dynamic binary pipeline. We want to build statically linked musl binaries. For that we need the static version of at least liburing built against musl, possibly some other stuff. Debian doesn't provide this. I've tried running a build process on alpine - unfortunately something in the build of our process needs to dynamically link stuff that doesn't work on alpine. So what needs to happen is you need to update the main debian build image to switch between glibc and musl binaries - when building for glibc, do the process we already have in place. When building for musl, copy the libraries from an alpine container and configure package config to find the system dependencies there See also: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/911 https://forgejo.ellis.link/continuwuation/continuwuity/issues/740
nex added the
Enhancement
Help wanted
Meta/Packaging
Priority
High
Status
Confirmed
labels 2025-07-31 14:43:35 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: continuwuation/continuwuity#912
No description provided.