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/add cruntime for machine sdk 17 use tar stream #17

Conversation

endersonmaia
Copy link
Contributor

Attempt to use tar-stream instead of nanotar.

Copy link

changeset-bot bot commented May 6, 2024

⚠️ No Changeset found

Latest commit: 7b68190

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@endersonmaia endersonmaia changed the base branch from main to feat/add-cruntime-for-machine-sdk-17-with-ubuntu-24.04 May 6, 2024 17:56
@endersonmaia endersonmaia changed the base branch from feat/add-cruntime-for-machine-sdk-17-with-ubuntu-24.04 to feat/add-cruntime-for-machine-sdk-17 May 6, 2024 17:56
@endersonmaia endersonmaia force-pushed the feat/add-cruntime-for-machine-sdk-17-use-tar-stream branch from 6bc2a85 to 4e4692e Compare May 6, 2024 17:58
Copy link
Member

@tuler tuler left a comment

Choose a reason for hiding this comment

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

how do I test this?
it complains about cartesi/cruntime:0.1.0. How do I build it?

pack.entry({ name: "config.json" }, ociConfigJSON, function (err) {
if (err) throw err;
console.log("ERROR config.json");
pack.finalize();
Copy link
Member

Choose a reason for hiding this comment

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

this looks out of place. because you will add more entries (for each gnuTar entry)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did some changes in a fixup, but the .cartesi/app.ocibuindle.tar is still incomplete.

I don't fully understand how these streams are supposed to work, something is missing to close/finish the tar, since I never hit the console.log() at lines 388 and 392.

But .cartesi/app.ocibuindle.tar has config.json and rootfs/ prefix there.

@endersonmaia
Copy link
Contributor Author

endersonmaia commented May 6, 2024 via email

@endersonmaia
Copy link
Contributor Author

endersonmaia commented May 7, 2024

how do I test this? it complains about cartesi/cruntime:0.1.0. How do I build it?

I recommend testing the draft branch PR #12 branch, to see the cruntime working, and this PR is an improvemente so we don't create a --flash-driver just for the config.json.

@endersonmaia endersonmaia marked this pull request as draft May 9, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants