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

Feature/nydus demo #731

Merged
merged 3 commits into from
Nov 21, 2023
Merged

Feature/nydus demo #731

merged 3 commits into from
Nov 21, 2023

Conversation

prabhu
Copy link
Collaborator

@prabhu prabhu commented Nov 21, 2023

Nydus enhances the current OCI image specification by improving container launch speed, image space and network bandwidth efficiency, and data integrity. cdxgen container images are available in nydus format with the -nydus suffix.

Follow the commands used in the below workflow to test this image.

https://github.com/CycloneDX/cdxgen/blob/feature/nydus-demo/.github/workflows/nydus-demo.yml

With my tests, nydus was always 30 seconds to a minute faster than equivalent container-based invocation during cold tests. The difference became much higher when new versions of the image were published, with nydus only pulling the changed blobs instead of the entire image again.

Below is an example where only 6.9 MB of data was downloaded when specifying the image name as ghcr.io/cyclonedx/cdxgen:feature-nydus-demo-nydus since that is the only difference compared to master. In contrast, docker or podman would have downloaded the entire 4GB image!

 /mnt/work/HooliCorp/vuln-spring  master *1 !7 ?7  sudo nerdctl --snapshotter nydus run --rm -it -e "CDXGEN_DEBUG_MODE=debug" -e JAVA_TOOL_OPTIONS -v $HOME/.m2:$HOME/.m2 -v $(pwd):/app ghcr.io/cyclonedx/cdxgen:feature-nydus-demo-nydus -r --profile research -t java /app -o /app/bom.json
[sudo] password for root: 
ghcr.io/cyclonedx/cdxgen:feature-nydus-demo-nydus:                                resolved       |++++++++++++++++++++++++++++++++++++++| 
manifest-sha256:008e8b27bd903fc690cfd89c35a84bb192f7b78492843756d575c7b141068404: done           |++++++++++++++++++++++++++++++++++++++| 
config-sha256:8e339a6db5dbc9c8bfe7118062d56b96a5c5410e5c677a2df786cc1d7457ccc7:   done           |++++++++++++++++++++++++++++++++++++++| 
layer-sha256:09434820e6d107614eb0208ab99c638c67e6b28fa6fa0099ec8f0de7ea5177d8:    done           |++++++++++++++++++++++++++++++++++++++| 
elapsed: 13.9s                                                                    total:  6.9 Mi (509.8 KiB/s)

cc: @heubeck in case you would like to test the nydus image.

@prabhu prabhu force-pushed the feature/nydus-demo branch 4 times, most recently from 1a00598 to 5454fb8 Compare November 21, 2023 21:16
Signed-off-by: prabhu <prabhu@appthreat.com>

nydus test

Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>

Added docker example for speed comparison

Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
@prabhu prabhu force-pushed the feature/nydus-demo branch from d15befe to 78d1e98 Compare November 21, 2023 22:05
@prabhu prabhu requested a review from setchy November 21, 2023 22:08
@prabhu prabhu marked this pull request as ready for review November 21, 2023 22:10
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
@prabhu prabhu merged commit ee85d80 into master Nov 21, 2023
25 checks passed
@prabhu prabhu deleted the feature/nydus-demo branch November 21, 2023 23:28
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant