Overview • Installation • Usage • Development • Troubleshooting •
zc
is the Zakuro AI command line tool designed to streamline operations within the Zakuro ecosystem. This tool acts as an interface for the user between their machine and the rest of the peers connected to it. It is written in Rust, offering several advantages such as performance, safety, and concurrency.
With zc
, users can join other clusters, subscribe to projects, and monitor their participation by reading the number of credits accumulated. The tool provides various commands for managing Docker containers, updating configurations, retrieving cluster information, and more.
- Rust (for building the
zc
tool) - Docker and Docker Compose
To build and run the zc
tool, follow these steps:
-
Clone the repository:
git clone https://github.com/zakuroai/zc.git cd zc
-
Build the tool:
make build
-
Run the tool:
./zc
Usage: zc [OPTIONS] COMMAND
A self-sufficient runtime for Zakuro
Options:
-d, --docker Execute the commands from zk0.
-v, --version Get the version of the current command line.
-h, --help Print this help.
Commands:
connect Enter zk0 in interactive mode.
update Update the command line.
pull Pull updated images.
images List Zakuro images built on the machine.
ps List current running Zakuro containers.
kill Remove current running Zakuro containers.
restart Restart the containers with updated images.
wg0ip Get the IP in the cluster.
rmi Remove Zakuro images.
workers List all workers connected to the main clusters (10.13.13.2).
context <path> Set new Zakuro context | untested.
connect
: Enter zk0 in interactive mode.update
: Update the command line tool by running a script from the Zakuro server.pull
: Pull updated images.images
: List Zakuro images built on the machine.ps
: List current running Zakuro containers.kill
: Remove current running Zakuro containers.restart
: Restart the containers with updated images.wg0ip
: Get the IP in the cluster.rmi
: Remove Zakuro images.workers
: List all workers connected to the main clusters (10.13.13.2).context <path>
: Set a new Zakuro context (untested).
To update the zc
tool:
zc update
To list all current running Zakuro containers:
zc ps
The docker-compose.yml
file is used to build and run the Docker container for zc
. The Docker image is built using the specified Dockerfile and context.
The Makefile
includes commands to automate building, running, and debugging the zc
tool.
make build
: Build thezc
tool and Docker image.make run
: Build and run thezc
tool.make release
: Execute the release version of the tool.make debug
: Build and run the tool in debug mode with full backtrace.
If you encounter issues running zc
, ensure you have the required environment variables set, particularly ZAKURO_AUTH
.
For more detailed documentation, visit Zakuro AI Documentation.