!VhbWwlUdjHkamKnfrK:nixos.org

Nix: Cloud Native

271 Members
64 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
29 Oct 2022
@uep:matrix.orguep

Hi folks.. random q. In the past, I've built lambdas for AWS using Rust, and basically the whole image is a zip file with a single "bootstrap" executable that is the runtime (that would normally be responsible for starting a whole python or node or whatever framework).

But of course that executable has dependencies on libc.so in FHS paths, so building that same executable on nixos is more involved.

06:25:04
@uep:matrix.orguep

Anyone have any recommendations or references? My current thoughts, before even really exploring further:

  • static musl target
  • build in a ubuntu (or whatever) systemd-nspawn container
  • some kind of hack in the build environment to emulate FHS
06:26:40
@uep:matrix.orguep *

Anyone have any recommendations or references? My current thoughts, before even really exploring further:

  • static musl target
  • build in a ubuntu (or whatever) systemd-nspawn container
  • some kind of hack in the build environment to emulate FHS
  • patchelf, in the reverse of how we normally use it, to turn store paths into FHS (ugh)
06:28:28

Show newer messages


Back to Room ListRoom Version: 6