└── tribes/
├── .github
│ ├── dependabot.yaml
│ └── workflows
├── LICENSE
├── Makefile
├── README.md
├── build
│ └── Dockerfile.machine
├── cmd
│ ├── tribes-rollup
├── configs
│ └── sqlite.go
├── contracts
├── coverage.md
├── go.mod
├── go.sum
├── internal
│ ├── domain
│ ├── infra
│ └── usecase
├── pkg
│ ├── custom_type
│ ├── rollups_contracts
│ └── router
├── test
├── tools
│ └── state.sh
└── website
-
Install Docker Desktop for your operating system.
To install Docker RISC-V support without using Docker Desktop, run the following command:
❯ docker run --privileged --rm tonistiigi/binfmt --install all
-
Cartesi CLI is an easy-to-use tool to build and deploy your dApps. To install it, run:
❯ npm i -g @cartesi/cli
Important
To run the system in development mode, it is required to install:
- Download and Install the latest version of Golang.
- Install development node:
❯ npm i -g nonodo
- Install air ( hot reload tool ):
❯ go install github.com/air-verse/air@latest
-
Production mode:
1.1 Build rollup from image:
❯ docker pull ghcr.io/tribeshq/tribes-machine:latest
1.2 Generate rollup filesystem:
❯ cartesi build --from-image ghcr.io/tribeshq/tribes-machine
1.3 Run validator node:
❯ cartesi run
-
Unsandboxed mode:
2.1 Build rollup from image:
❯ docker pull ghcr.io/tribeshq/tribes-machine:latest
2.2 Generate rollup filesystem:
❯ cartesi build --from-image ghcr.io/tribeshq/tribes-machine
2.3 Start the application inside a Cartesi Machine unsandboxed:
❯ cartesi-machine --network \ --flash-drive=label:root,filename:.cartesi/image.ext2 \ --env=ROLLUP_HTTP_SERVER_URL=http://10.0.2.2:5004 -- /var/opt/cartesi-app/app
-
Host mode:
2.1 Start the development mode:
❯ nonodo
2.2 Install the tribes rollup package:
❯ go install github.com/tribeshq/tribes/cmd/tribes-rollup@latest
2.3 Running from the package:
❯ tribes-rollup --help # Using the flag --help to list all commands available
-
Run development node:
❯ nonodo -- air
Note
To reach the final state of the system, run the command bellow:
❯ make state
❯ make test