Viewing profile — NilsIRL
NilsIRL
HN member- Joined
- Sun, Jun 30, 2019, 10:03 AM UTC
- HN karma
- 1,004
- Public activity
- 224 items
- HN profile
- View on Hacker News ↗
About NilsIRL
hn@nilsand.re
@NilsIRL everywhere
alert(1);
Recent public activity
- story
- story
-
comment
Comment #39762885
> I did this before I learned how to finish projects Very curious about this. As do many people I struggle to finish projects. How does one learn this skill?
-
comment
Comment #39684290
I moved zig-clap to zon. Was alright. I appreciate that absence of a package registry.
-
comment
Comment #39628393
Unfortunately cosmopolitan wouldn't work for dockerc. Cosmopolitan works as long as you only use it but container runtimes require additional features. Also containers contain arbi…
-
comment
Comment #39628211
I thought it was an acceptable trade-off given that AppImage has the same limitation. An alternative is to extract the image to disk but that has quite a bit of overhead.
-
comment
Comment #39628182
don't give me ideas ;) (yes)
-
comment
Comment #39628168
They have the same goal but achieve it differently. dockerc allows you to re-use your existing docker images without having to spend time packaging something up. The applications r…
-
comment
Comment #39628145
I don't expect this to interact with the docker daemon in any way. With networking executables generated by dockerc behave in the same way as a native application running outside a…
-
comment
Comment #39625030
dockerc can, the produced executables cannot, at least not without some tweaking. Even if you path through `/dev/fuse` and `/usr/bin/fusermount3` (using -v) it fails the mount the …
-
comment
Comment #39624987
I hadn't heard of Apptainer/Singularity before but it doesn't seem to provide the ability to create standalone executables.
-
comment
Comment #39624941
> Running on Windows/macOS was also the context in which I meant to ask about filesystem mounts. That's not an issue because the mounts are within the Linux VM. At least as long as…
-
comment
Comment #39624880
That's really cool. I didn't know about that. Thanks for sharing. There's a few things that seem to make it unsuitable for the intended use case of dockerc: * The container extract…
-
comment
Comment #39624858
Yeah, I don't think this makes that much sense for internal distribution. Especially if you use kubernetes. The use case is for distributing software to end users.
-
comment
Comment #39624818
The main reason Zig was chosen is because the project was started at a hackathon[0] at which there was a prize for "best use of Zig". Beyond that there were also other reasons: 1. …
-
comment
Comment #39624759
Thanks! > Will this run ok on a Mac? I've managed to make it work but unfortunately not in a way that produces portable binaries. I just need to figure out how to selectively stati…
-
comment
Comment #39624740
Yep, this is a known issue. It also existed in the past with normal docker. https://github.com/NilsIrl/dockerc/issues/6
-
comment
Comment #39623392
> How do you deal with resource sharing? This starts with just filesystem mounts, but also concerns ports, possibly devices, and probably many other things I'm forgetting. Is this …
-
comment
Comment #39622583
> How static are we talking here? Enough for the executables to run everywhere. So I'm happy for system libraries to be dynamically linked. > But do you even want to distribute Win…
-
comment
Comment #39622358
> It would make sense that a tool like this would prioritize MacOS/Windows support above all else. Yep, unfortunately I've not had the time to make it work well on those platforms.…
-
comment
Comment #39622184
It will depend heavily on the docker image you're trying to ship. For example with macos-cross-compiler[0] the resulting binary is over 2GB. With python:alpine[1] it's only 25MB. B…
-
comment
Comment #39621939
Yep! It works with any docker image!* *: https://github.com/NilsIrl/dockerc/issues/6
-
comment
Comment #39621815
Thanks for the bug report! Just pushed a change that fixes it (and made a new release with the issue fixed: https://github.com/NilsIrl/dockerc/releases/ )
-
comment
Comment #39621573
Yep pretty much. The executables bundle crun (a container runtime)[0], and a fuse implementation of squashfs and overlayfs. Appended to that is a squashfs of the image. At runtime …
- story