-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Docker Compose as a library #387
Comments
cc (me): @dockertopia so I can see this also in my PR queries. |
DescriptionAn interesting requirement would be for Ansible. Currently the Possible SolutionThere is a possible solution However, based on the discussion for the community.docker future roadmap it is still under consideration by the Maintainer. A possible exposed library / API would be a great help especially the current DevOps / IaaC landscape. cc @felixfontein (maintainer of Ansible community.docker collection), might have some feedback here for community.docker for docker compose v2 roadmap |
Any updates on this subjects ? |
Using Docker Compose as a library isn't useful for Ansible since Docker Compose isn't written in Python anymore, but in Go. But having a way to get machine readable output (see also docker/compose#10872) for commands such as At least having a way to enable JSON stream output with some basic structure (that can easily be extended since it's JSON) would be extremely helpful to be able to use Docker Compose by shelling out. |
Tell us about your request
Provide a stable Golang API for Docker Compose to let developers use Compose inside their own development without doing shell out.
Which service(s) is this request for?
Docker Compose
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
We have users asking if they can the
cmd
orpkg
packages as a stable reference to embed Compose inside their own development. For now the answer is that we don't guarantee backward compatibility in Compose internals between 2 versions.We may consider to make interfaces present in
pkg
directory more stable and support an API usage of those interfaces.Are you currently working around the issue?
Not especially but the interfaces of Compose V2 are pretty stable now.
Additional context
docker/compose#9602
docker/compose#9579
The text was updated successfully, but these errors were encountered: