Replies: 1 comment
-
Our usual recommendation is the REST API, which provides Go bindings and has a stability guarantee. However, it does require that you run an API server. I think it should be possible for you to fork off a copy of the server ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm a maintainer of rules_docker and I've been thinking of rewriting the rule set to use podman under the hood. Right now we have a lot of custom code for doing the following things:
docker save
of the container (.tar file with layers + metadata)docker save
format.The code in our repo is not in a healthy state and we'd like to transition to something more maintainable. I think using podman as a backend for managing images is probably the best bet but there are some constraints that I haven't found how to make podman work in. The biggest difficulty I see is that when commands are running in Bazel it is expected that they do not access files they are not explicitly told to access. I think podman loads some configuration, accesses caches, and writes to folders/files that would be difficult for me to predict. Would there be a way to implement something like
podman -only_access_directory ./some_directory
to make it so podman only ever reads/writes to that folder?Another question: is there a good way to start podman within a golang program? I'm imagining some kind of library that has an init method that forks off podman and kills podman on exit that provides an easy to understand
api.LoadImage()
-like API.Beta Was this translation helpful? Give feedback.
All reactions