Opencue Rust modules:
Project crates:
- rqd: rewrite of OpenCue/rqd
- dummy-cuebot: A cli tool to interact with rqd's gRPC interface
- opencue_proto: Wrapper around grpc's generated code for the project protobuf modules
- monitoring-indexer: OpenCue monitoring event indexer (Kafka to Elasticsearch)
- cueadmin: rewrite of OpenCue/cueadmin, see
crates/cueadmin/README.md
Sample configuration files are available in the config/ directory:
config/rqd.yaml- RQD configurationconfig/rqd.fake_linux.yaml- RQD configuration for simulating Linux on macOSconfig/monitoring-indexer.yaml- Monitoring indexer configuration
Follow these steps to build and run the Rust-based RQD and Dummy Cuebot modules.
- Install protobuf
MacOS:
Example on macOS, you can use Homebrew to install protobuf:
brew install protobufLinux:
Example on Ubuntu, you can use apt:
sudo apt-get install protobuf-compiler- Build the entire project
cd OpenCue/rust
cargo build -rBuilding at release mode (cargo build -r) will compile the OS specific version of rqd, while
building at debug mode (cargo build) compiles both linux and macos versions. This is done to enable
developing the linux version on macos environments.
- Start the
dummy-cuebotreport server:
target/release/dummy-cuebot report-server- In another terminal, start the RQD service:
Run with a simulation of a linux environment:
env OPENCUE_RQD_CONFIG=/PATH-TO-OPENCUE/OpenCue/rust/config/rqd.fake_linux.yaml target/release/openrqdNotes:
- Ensure you have the correct path to your OpenCue configuration file.
- The example above uses a fake configuration file for demonstration purposes.
- The
OPENCUE_RQD_CONFIGenvironment variable points to the configuration file for the RQD service.
- Launch a test frame:
target/release/dummy-cuebot rqd-client launch-frame /PATH-TO-OPENCUE/Opencue/rust/crates/rqd/resources/test_scripts/memory_fork.shNotes:
- The
launch-framecommand starts a test frame using the specified script. - The script
memory_fork.shis a sample script that simulates a rendering task for testing purposes. - You should see output indicating that the frame has been launched and is being processed by the RQD service.
- You can monitor the logs in the terminal where you started the RQD service to see the progress and status of the frame execution.
- You can follow the logs for jobs created by dummy-cuebot on
/tmp/rqd/test_job.test_frame.rqlog