Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
pombredanne opened this issue Feb 13, 2021 · 2 comments
Closed

Comments

@pombredanne
Copy link
Member

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.)
@pombredanne pombredanne changed the title Support input as tarball(s) in root fileystem pipelines Support input as tarball(s) and VM images in root fileystem pipelines Feb 13, 2021
tdruez added a commit that referenced this issue Feb 15, 2021
- Improve support for unknown distros in docker and root_filesystem pipelines #97

Signed-off-by: Thomas Druez <tdruez@nexb.com>
@tdruez
Copy link
Contributor

tdruez commented Feb 15, 2021

Support added in eb970db
The tarballs are now supported as inputs

@tdruez
Copy link
Contributor

tdruez commented Mar 15, 2021

Tarballs are now supported by the root_filesystems pipeline.

Also, the command line can be used as follow:

scanpipe create-project my_project --input-file location/of/rootfs_tarball.tar --pipeline root_filesystems --execute

@tdruez tdruez closed this as completed Mar 15, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants