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

Singularity Image Support #974

Merged
merged 3 commits into from Aug 2, 2022
Merged

Singularity Image Support #974

merged 3 commits into from Aug 2, 2022

Conversation

tri-adam
Copy link
Contributor

@tri-adam tri-adam commented Apr 28, 2022

Add support for Singularity Image Format (SIF) containers to syft CLI and README, as proposed in anchore/stereoscope#125. This is similar in aim to #940, but requires fewer changes on the syft changes due to a streamlined approach on the Stereoscope side.

To give it a try:

$ go mod edit -replace github.com/anchore/stereoscope=github.com/tri-adam/stereoscope@singularity
$ go mod tidy
$ go run ./cmd/syft/ packages singularity:alpine_latest.sif
 ✔ Parsed image            
 ✔ Cataloged packages      [14 packages]
[0000]  INFO identified distro: Alpine Linux v3.14
[0000]  INFO cataloging image
NAME                    VERSION      TYPE 
alpine-baselayout       3.2.0-r15    apk   
alpine-keys             2.3-r1       apk   
apk-tools               2.12.5-r1    apk   
busybox                 1.33.1-r2    apk   
ca-certificates-bundle  20191127-r5  apk   
libc-utils              0.7.2-r3     apk   
libcrypto1.1            1.1.1k-r0    apk   
libretls                3.3.3-r0     apk   
libssl1.1               1.1.1k-r0    apk   
musl                    1.2.2-r3     apk   
musl-utils              1.2.2-r3     apk   
scanelf                 1.3.2-r0     apk   
ssl_client              1.33.1-r2    apk   
zlib                    1.2.11-r3    apk

Related to sylabs/sif#190
Closes #937

Add "singularity-image" scheme to CLI documentation and README.

Signed-off-by: Adam Hughes <9903835+tri-adam@users.noreply.github.com>
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
@wagoodman wagoodman marked this pull request as ready for review August 2, 2022 14:31
Copy link

@dtrudg dtrudg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @wagoodman - just noting that this is working as expected here, and the docs pieces LGTM. Thanks again for all your assistance.

$ go run ./cmd/syft/ packages singularity:/home/dtrudg/ubuntu_latest.sif
 ✔ Parsed image
 ✔ Cataloged packages      [101 packages]

NAME                 VERSION                                  TYPE
adduser              3.118ubuntu5                             deb
apt                  2.4.5                                    deb
base-files           12ubuntu4.1                              deb
base-passwd          3.5.52build1                             deb
...

Copy link
Contributor

@wagoodman wagoodman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 🌮 Thanks for adding this support in stereoscope/syft @tri-adam @dtrudg !

@wagoodman wagoodman merged commit d361d40 into anchore:main Aug 2, 2022
@tri-adam tri-adam deleted the singularity branch August 8, 2022 14:03
aiwantaozi pushed a commit to aiwantaozi/syft that referenced this pull request Oct 20, 2022
* docs: add Singularity image support

Add "singularity-image" scheme to CLI documentation and README.

Signed-off-by: Adam Hughes <9903835+tri-adam@users.noreply.github.com>

* upgrade stereoscope + docs

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

Co-authored-by: Alex Goodman <alex.goodman@anchore.com>
GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
* docs: add Singularity image support

Add "singularity-image" scheme to CLI documentation and README.

Signed-off-by: Adam Hughes <9903835+tri-adam@users.noreply.github.com>

* upgrade stereoscope + docs

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

Co-authored-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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Singularity Image Format (SIF) support
3 participants