Skip to content

Support input as tarball(s) and VM images in root fileystem pipelines #96

Description

@pombredanne

To run a root_filesystem pipeline, we need to do this for now:

(thanks to @JonoYang for providing the steps! )

Start from a new project:

  1. Create a project by running scanpipe create-project myproj
  2. Once the project is created, copy the contents of your rootfs tarball to scancode.io/var/projects/<myproj-id>/codebase. This directory should look like a rootfs.
  3. Add the rootfs pipeline to your project: scanpipe add-pipeline --project myproj scanpipe/pipelines/root_filesystems.py
  4. Run the pipeline on your project: scanpipe run --project myproj

This is not a great UX. We should support having an input as a tarball or as an image (see aboutcode-org/extractcode#16 )

In doing so there is some minor issue to resolve which is to determine where is the root of a rootfs.

  1. for now it should be the root of the image or tarball
  2. we should later find the actual rootfs root automatically based on the the typical layout of an image format OR recognizing typically rootfs layouts (e.g. a typial POSIDX fs layout with /usr/lib, /bin, /etc, ... etc.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions