19 Oct 2022 |
| aktaboot left the room. | 20:54:35 |
29 Oct 2022 |
| Tseb joined the room. | 06:12:19 |
| uep joined the room. | 06:15:19 |
uep | 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 | 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 | * 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 |
31 Oct 2022 |
jake_gillberg | Lambdas also support containers, so a dockerTools approach might be another angle of attack? | 14:39:44 |
| underpantsgnome changed their display name from underpantsgnome! to underpantsgnome. | 20:30:28 |
1 Nov 2022 |
uep | yeah but it's all so much more.. stuff | 03:17:19 |
2 Nov 2022 |
| Claes joined the room. | 00:47:52 |
3 Nov 2022 |
jackdk | In reply to @uep:matrix.org
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)
https://github.com/bellroy/wai-handler-hal/tree/master/wai-handler-hal-example uses haskell.nix to statically link against musl. Not sure if you can make it work for your standard? There are also dockerTools examples there | 07:05:50 |
jackdk | In reply to @uep:matrix.org
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)
* https://github.com/bellroy/wai-handler-hal/tree/master/wai-handler-hal-cdk uses haskell.nix to statically link against musl. Not sure if you can make it work for your standard? There are also dockerTools examples there | 07:06:22 |
uep | I'm leaning more towards musl as time goes on | 07:40:25 |
| theDev.one 🌷 changed their display name from ronixx to 🙃. | 08:55:24 |
| theDev.one 🌷 changed their display name from 🙃 to nixie 😎. | 08:56:36 |
| theDev.one 🌷 changed their display name from nixie 😎 to nixie 🤓. | 08:56:55 |
| theDev.one 🌷 set a profile picture. | 08:57:27 |
| Felix Andreas left the room. | 14:43:52 |
| Felix Andreas joined the room. | 14:44:08 |
5 Nov 2022 |
| asymmetric changed their profile picture. | 16:21:17 |
6 Nov 2022 |
| spott joined the room. | 18:26:16 |
13 Nov 2022 |
| NAHFE joined the room. | 19:46:28 |
| NAHFE left the room. | 19:46:45 |
| NAHFE joined the room. | 19:46:53 |
| NAHFE left the room. | 19:48:30 |
15 Nov 2022 |
| spott changed their display name from Andrew Spott to spott. | 03:30:47 |
16 Nov 2022 |
| omlet joined the room. | 20:35:42 |
18 Nov 2022 |
| asymmetric changed their profile picture. | 10:10:46 |
19 Nov 2022 |
| uny left the room. | 23:02:36 |
25 Nov 2022 |
| raphi changed their profile picture. | 19:41:56 |