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

feat: wasi platform build #810

Closed
wants to merge 12 commits into from
Closed

feat: wasi platform build #810

wants to merge 12 commits into from

Conversation

hown3d
Copy link

@hown3d hown3d commented Sep 3, 2022

Second iteration, for more information see #738

This PR implements the scenario described in #675 by using tinygo as the builder for target WASI.

Documentation is not yet done, but can be created if this feature is wanted.

SBOM generation is currently not implemented, since tinygo doesn't produce the same buildInfo that go does.

Signed-off-by: Höhl, Lukas [email protected]

Copy link
Member

@imjasonh imjasonh 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 taking another swing at this! This looks really promising, and much less involved than the last one.

I'm excited to see where this goes! 👀

pkg/build/gobuild.go Outdated Show resolved Hide resolved
internal/ociconv/ociconv.go Outdated Show resolved Hide resolved
.github/workflows/wasi.yaml Outdated Show resolved Hide resolved
@@ -0,0 +1,66 @@
name: Integration test for wasi
Copy link
Member

Choose a reason for hiding this comment

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

❤️❤️❤️


# run a nested podman container to use annotations (could be removed once docker is able to specify annotations on containers)
docker run --priviliged \
-v /tmp/crun/crun:/usr/bin/crun \
Copy link
Member

Choose a reason for hiding this comment

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

Is there a way to just run crun directly, instead of having to run it in a container?

Copy link
Author

Choose a reason for hiding this comment

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

I think it's easier to run everything inside a container, because automatically creating OCI bundles is kinda clunky. This approach makes it a bit easier.

@hown3d
Copy link
Author

hown3d commented Sep 12, 2022

@imjasonh I did some local testing on the integration tests, they should be working by now.
Could you kick them off to see if it works as expected?

@github-actions
Copy link

This Pull Request is stale because it has been open for 90 days with
no activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants