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

cartesi run to rollups-node:2.x #116

Draft
wants to merge 5 commits into
base: prerelease/v2-alpha
Choose a base branch
from

Conversation

endersonmaia
Copy link
Contributor

No description provided.

Copy link

changeset-bot bot commented Oct 29, 2024

🦋 Changeset detected

Latest commit: 2f80b89

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cartesi/cli Patch

Not sure what this means? Click here to learn what changesets are.

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

Copy link
Contributor

github-actions bot commented Oct 29, 2024

Coverage Report for ./apps/cli

Status Category Percentage Covered / Total
🔵 Lines 31% 293 / 945
🔵 Statements 31.13% 298 / 957
🔵 Functions 36.95% 51 / 138
🔵 Branches 27.88% 121 / 434
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
apps/cli/src/baseCommand.ts 0% 0% 0% 0% 40-127
apps/cli/src/commands/doctor.ts 0% 0% 0% 0% 6-137
Generated in workflow #246 for commit 2f80b89 by the Vitest Coverage Report Action

@endersonmaia endersonmaia force-pushed the feature/cli-run-v2 branch 3 times, most recently from d8e88da to 1b2868f Compare November 4, 2024 15:30
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x0000000000000000000000000000000000000000000000000000000000000000",
]
- /bin/bash
Copy link
Member

Choose a reason for hiding this comment

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

I usually don't like to use bash as the command, and instead use the actual process we need to start.
Is this because of env variables?
I understand as well that we need the command stdout to go to a file, in the host .cartesi directory. How are we doing that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it was a way to debug with -x

About saving do the host, we'd need to mount it into the container and redirect to a file.

Or we'd need to save to a named volume and copy on another process with docker cp.

Copy link
Member

Choose a reason for hiding this comment

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

mounting the volume is easy, but how to redirect to a file? Does the following work??

- ">"
- "filename"

Copy link
Member

Choose a reason for hiding this comment

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

Support for environment variables will be added to the cartesi-rollups-cli

@endersonmaia endersonmaia force-pushed the feature/cli-run-v2 branch 3 times, most recently from bd0df04 to f54fe46 Compare January 27, 2025 19:16
Using the post_start docker compose hook, we can create the snapshot
directory and copy the snapshot using the root user and start the
container with cartesi unprivileged user.

Requires compose plugin 2.30.0

See: https://docs.docker.com/compose/how-tos/lifecycle/
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.

2 participants