konveyor / move2kube

Move2Kube is a command-line tool for automating creation of Infrastructure as code (IaC) artifacts. It has inbuilt support for creating IaC artifacts for replatforming to Kubernetes/Openshift.
https://move2kube.konveyor.io/
Apache License 2.0
377 stars 119 forks source link

Use libpod instead of requiring external podman binary #1142

Open mohit-marathe opened 5 months ago

mohit-marathe commented 5 months ago

Is your feature request related to a problem? Please describe. Unlike dockerengine.go, podmanengine.go does not uses API. It instead uses exec.Command which requires podman binary to perform any operation.

Describe the solution you'd like Use libpod

Additional context https://github.com/konveyor/move2kube/issues/599#issuecomment-955157610

Sanket-0510 commented 5 months ago

Hey as per my understanding we can use libpod's library for the following:

  1. Inspecting image using pod.InspectImage(.
  2. libpod's Imagepull function to pull the image
  3. there is a function name createContainer to create and run the container.

@mohit-marathe I would like to take this issue.