Uploaded image for project: 'CoreOS OCP'
  1. CoreOS OCP
  2. COS-3309

Add a `cosa import` command to import a built container image

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • CoreOS East - 272, CoreOS East - 273, CoreOS East - 274
    • 0

      Add a new `cosa import` command that can be used to synthesize a cosa build from an already-built container image (which could've been built using podman/buildah/Konflux/etc...).

      Then, it should look and feel mostly like any other cosa build, and one should be able to do e.g. `cosa buildextend-qemu` etc...

      Import would:

      • Download a container image in an oci.archive
      • Create the build directory that contain the meta.json
      • Populate what's is needed in meta.json to allow cosa build to work

      Part of that logic is already in cosa build, we should probably look at splitting that logic.

      How to test:

      `cosa import quay.io/fedora/fedora-coreos:stable`
      `cosa buildextend-qemu`

      This should result in having a working fcos.qcow2 image built, we can run the kola test on that image.

              rh-ee-bbnaraya Bipin Narayan
              jlebon1@redhat.com Jonathan Lebon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: