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: build single node binary #94

Merged
merged 1 commit into from
Sep 20, 2023
Merged

feat: build single node binary #94

merged 1 commit into from
Sep 20, 2023

Conversation

torives
Copy link
Contributor

@torives torives commented Sep 19, 2023

🧪 How to test

Setup the database

The binary will start the graphql-server service and therefore needs a PostgreSQL instance to connect to. You should follow the instructions in the data crate README file to get a populated database you can interact with.

Build graphql-server

The cartesi-node command assumes the executables (graphql-server in this case) are present in the PATH variable. So you'll first need to build it with cargo and then add it to your PATH. For example:

Inside offchain/graphql-server:

cargo build

and then:

PATH="{path to your workspace}/rollups-node/offchain/target/debug:${PATH}" 

Run the cartesi-node command

From the project's root, just run:

POSTGRES_PASSWORD=pw go run ./cmd/cartesi-node full

The server should have started and to verify it you can interact with it via the GraphQL Playground at http://localhost:4000/graphql

Closes #91

@torives torives added the no changelog PRs that don't require changes in changelog label Sep 19, 2023
@torives torives self-assigned this Sep 19, 2023
@torives torives requested review from gligneul and a team and removed request for gligneul September 19, 2023 17:54
@torives torives marked this pull request as ready for review September 19, 2023 17:56
cmd/supervisor/supervisor.go Outdated Show resolved Hide resolved
internal/pkg/supervisor/full.go Outdated Show resolved Hide resolved
cmd/supervisor/supervisor.go Outdated Show resolved Hide resolved
internal/pkg/supervisor/full.go Outdated Show resolved Hide resolved
internal/pkg/supervisor/host.go Outdated Show resolved Hide resolved
internal/pkg/supervisor/root.go Outdated Show resolved Hide resolved
@torives torives merged commit c7959f1 into main Sep 20, 2023
4 checks passed
@torives torives deleted the feature/single-binary branch September 20, 2023 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog PRs that don't require changes in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create the base Go project
2 participants