Conversation
Use static-debian13 distroless image for full compatibility with trixie builds. It provides a bare filesystem for the multi-stage docker build. Additionally, use SHA digest for distroless image. Signed-off-by: Daniel-Ioan Dinu <daniel_dinu30@yahoo.com>
…ample - Measure root file system size using du -h - Scan for vulnerabilities using Trivy - Run and validate output using grep Additionally, document one unresolved CVE to .trivyignore. Signed-off-by: Daniel-Ioan Dinu <daniel_dinu30@yahoo.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added a Wazero1.12 Go1.27 WebAssembly polyglot example using the distroless container image
gcr.io/distroless/static-debian13, which is compatible withtrixieand provides sufficient dependencies.The
README.mdfile contains instructions for building and running the example manually.The multi-stage Docker build handles the compilation of all 5 languages into
.wasmfiles and drops them alongside the static Go/runnerbinary in the bare distroless container image.Automated Testing
The second commit of this PR contains a three-stage workflow to build and test this example via Github Actions:
rootfssize (resulting in 21MB).trivyignorefor more)grepNotes
While Go and Rust needed their respective compilers from the Docker images
golang:1.27.0-trixieandrust:1.98-trixie, C and C++ can benefit from Zig's fully configured Clang frontend (zig ccandzig c++as compilation commands for WebAssembly).