News for hackers. Stuff that matters.
Re:Non-Obvious Docker Uses by notatoad on Sunday July 24, 2022 @01:26PM (#32215635)
any examples of the "registry as config store" idea? i've got a use-case where that could be pretty handy
Re:Non-Obvious Docker Uses by ImJasonH on Sunday July 24, 2022 @02:40PM (#32216341)
There's lots of examples of folks packaging non-container-image things and stuffing them in a registry:

- cosign signatures, SBOMs, attestations: https://docs.sigstore.dev/cosign/overview/

- Istio wasm plugins: https://istio.io/latest/docs/reference/config/proxy_extensio...

- OPA bundles: https://www.openpolicyagent.org/docs/v0.13.5/bundles/

- Tekton bundles: https://github.com/tektoncd/resolution/tree/main/bundleresol...

There's even a demo (plug: in a talk I co-presented) of running a RISC-V emulator where its memory is stored in an OCI registry: https://www.youtube.com/watch?v=Xt_G-pUArTM

These all tend to include a CLI to collect/generate/validate resources and push/move/pull them, but the underlying implementation is roughly the same -- package content in a tarball, generate some JSON pointing to it, push that JSON to the registry (with auth).

The real benefit to this is that basically everyone has access to a registry these days -- in their cloud provider, on-prem, whatever -- with exactly the same APIs and mostly sane auth and client tooling.

If you're interested in exploring it for your use case let me know, I'd be happy to give you some pointers.

Re:Non-Obvious Docker Uses by qbasic_forever on Sunday July 24, 2022 @04:27PM (#32217354)
Helm can store kubernetes charts in an OCI/docker registry too: https://helm.sh/blog/storing-charts-in-oci/
Re:Non-Obvious Docker Uses by notatoad on Sunday July 24, 2022 @06:14PM (#32218317)
thank. helm links to https://oras.land/, which seems like a pretty cool generalization of all this.
Re:Non-Obvious Docker Uses by john-tells-all on Sunday July 24, 2022 @02:11PM (#32216061)
Note that with "Docker as package" style development, you lose the ability to specify dependencies. Consider building real packages, then installing them in shim Docker images. This gives you the best of both worlds: rich dependency specification, and "just run the thing" facility with Docker.
Re:Non-Obvious Docker Uses by jonjonsonjr on Sunday July 24, 2022 @02:53PM (#32216464)
I gave a very compressed lightning talk last year about this: https://youtu.be/ExyWAhS2zBA
Re:Non-Obvious Docker Uses by rckrd on Sunday July 24, 2022 @01:52PM (#32215886)
I can't find the code anymore but I originally saw this in docker/compose.

I forget what they were using it for, but it boiled down to packing up a json file or two in a tarball and pushing it to the local daemon with a special suffix. Then it could pull that and unpack it on the next run.