Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add OCI support + use URI schemes #178

Merged
merged 4 commits into from
Sep 25, 2020
Merged

Add OCI support + use URI schemes #178

merged 4 commits into from
Sep 25, 2020

Conversation

wagoodman
Copy link
Contributor

@wagoodman wagoodman commented Sep 23, 2020

Adds the ability to catalog OCI images from tar archive or directory:

# explicitly
syft oci-archive:path/to.tar
syft oci-dir:path/to/dir

# or implicitly
syft path/to/tar/or/dir

Also hinted in the example above, this PR incorporates changing the URL approach for specifying the source transport to a URI oriented approach (see anchore/stereoscope#41 PR description for more details). TL;DR is :// is being replaced with : to fall in line with the URI RFC.

Lastly, migrates to using the stereoscope fixture utils instead of the functions from go-testutils.

Closes #177

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
@wagoodman wagoodman changed the title Add OCI support + user URI schemes Add OCI support + use URI schemes Sep 24, 2020
@wagoodman wagoodman added the enhancement New feature or request label Sep 24, 2020
go.mod Outdated Show resolved Hide resolved
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
@wagoodman wagoodman merged commit 3d91a66 into main Sep 25, 2020
@wagoodman wagoodman deleted the add-oci-support branch September 25, 2020 14:24
GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
* add oci support + update image schemes

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update docs to reflect OCI image sources + URI scheme change

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update to oci-dir

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* bump upstream stereoscope pin

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update CLI syntax for input source specification
2 participants