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:
- Create a project by running
scanpipe create-project myproj
- 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.
- Add the rootfs pipeline to your project:
scanpipe add-pipeline --project myproj scanpipe/pipelines/root_filesystems.py
- 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.
- for now it should be the root of the image or tarball
- 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.)
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:
scanpipe create-project myprojscancode.io/var/projects/<myproj-id>/codebase. This directory should look like a rootfs.scanpipe add-pipeline --project myproj scanpipe/pipelines/root_filesystems.pyscanpipe run --project myprojThis 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.
/usr/lib,/bin,/etc, ... etc.)