Show HN: dockerc – Docker image to static executable "compiler"
1–10 of 150 posts
Re: Show HN: dockerc – Docker image to static executable "compiler"
#2Re: Show HN: dockerc – Docker image to static executable "compiler"
#3Re: Show HN: dockerc – Docker image to static executable "compiler"
#4Nice idea! How does this actually work? I'm guessing it's wrapping a custom loader + docker + the image into an executable binary - or something like that?
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 the squashfs and overlayfs are mounted and the container is started.
Re: Show HN: dockerc – Docker image to static executable "compiler"
#5-----
$ ./dockerc --image docker://oven/bun --output bun
FATA[0000] Error loading trust policy: open /etc/containers/policy.json: no such file or directory ⨯ open CAS: validate: read oci-layout: invalid image detected Cannot stat source directory "/tmp/dockerc-fbObho/bundle" because No such file or directory error: FileNotFound
-----
Btw does this also solve the last line in the original user's complaints?
Re: Show HN: dockerc – Docker image to static executable "compiler"
#6Re: Show HN: dockerc – Docker image to static executable "compiler"
#7The Reddit screenshot is hilarious. But it reflects my feelings whenever I want to install a product made by many of these self-proclaimed "open source" companies that bend over backwards to make it almost impossible to install the open version (...and often to discover the crucial features are missing anyway).
(^I'm a collaborator on awesomecv, a latex CV/resume template, and we get a lot of PRs from people trying to edit their own information & experience into the example. I keep meaning to set up a template repo of how to use it properly as a latex class, maybe include rendering in Actions, the way my own use of it is basically, and more strongly point people towards that in the readme, maybe even remove the example. But I've been saying that for years, since before 'template repo' existed in fact.)
Re: Show HN: dockerc – Docker image to static executable "compiler"
#8The Reddit screenshot is hilarious. But it reflects my feelings whenever I want to install a product made by many of these self-proclaimed "open source" companies that bend over backwards to make it almost impossible to install the open version (...and often to discover the crucial features are missing anyway).
Re: Show HN: dockerc – Docker image to static executable "compiler"
#9OK that's a cool idea. I did try the example in the README but I get an error right away (Ubuntu 22.04) ----- $ ./dockerc --image docker://oven/bun --output bun FATA[0000] Error loading trust policy: open /etc/containers/policy.json: no such file or directory ⨯ open CAS: validate: read oci-layout: invalid image detected Cannot stat source directory "/tmp/dockerc-fbObho/bundle" because No such file or directory error:…