From ef38e5556eb10c1fd79ec9d980efe951b5b19eec Mon Sep 17 00:00:00 2001 From: Joe McCormick <31295332+iamjoemccormick@users.noreply.github.com> Date: Fri, 18 Jul 2025 11:50:08 +0000 Subject: [PATCH] docs: add instructions to build packages Also updates the README structure to align with other ThinkParQ projects like BeeGFS Go. --- README.md | 48 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 39 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index cf0d4a5..2c79236 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,41 @@ -# Build the management +beegfs-rust +=========== -1. Read through [Getting started with Rust](https://github.com/ThinkParQ/beegfs-rs/wiki/Getting-Started-with-Rust) and setup your environment as described. +# Contents -2. Clone the management repository: +- [Getting Started](#getting-started) + - [Prerequisites](#prerequisites) + - [Building (With or Without Packaging)](#building-with-or-without-packaging) + - [Setting the binaries version output](#setting-the-binaries-version-output) +- [Run the management](#run-the-management) + - [Provide a config file](#provide-a-config-file) + - [Provide TLS certificates](#provide-tls-certificates) + - [Provide BeeMsg authentication file](#provide-beemsg-authentication-file) + - [Set up the database](#set-up-the-database) + - [Run the server](#run-the-server) - ```shell - git clone https://github.com/ThinkParQ/beegfs-rs - cd beegfs-rs - ``` +The purpose of this repository is twofold: + +* Provide Rust packages for interacting with BeeGFS. +* Provide BeeGFS-related software written in Rust, such as the BeeGFS management service. + +# Getting Started + +## Prerequisites -3. The management can be built and run through cargo in one step: +* If you just want to build/run the project without OS packages download and install Rust from + [rustup](https://rustup.rs/). +* If you want to build packages you also need to run `make install-tools`. + * Note this only installs the tooling needed for a local, native build and is insufficient for + cross-compilation. + +If you are interested in contributing to the project please refer to [Getting Started with Rust](https://github.com/ThinkParQ/beegfs-rust/wiki/Getting-Started-with-Rust) in the project wiki. + +## Building (With or Without Packaging) + +There are a few ways to build/run the BeeGFS management service: + +* The management can be built and run through cargo in one step: ```shell cargo run -p mgmtd -- --help @@ -24,7 +50,11 @@ ./target/debug/mgmtd --help ``` - Both ways are valid - down below, the first variant is used as it is quicker. + Both ways are valid, in the below examples the first variant is used as it is quicker. + +* Build and install using OS packages: `make package` + * Packages will be created under `target/package/` that can be installed using `dpkg -i ` + or similar. ## Setting the binaries version output