From 870229c85575b76ea25d3ba3dce05a82b7e9fc42 Mon Sep 17 00:00:00 2001 From: Fred Clausen <43556888+fredclausen@users.noreply.github.com> Date: Tue, 26 Jul 2022 06:15:25 -0600 Subject: [PATCH] Create BUILD.md --- BUILD.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 BUILD.md diff --git a/BUILD.md b/BUILD.md new file mode 100644 index 00000000..f14dfc7a --- /dev/null +++ b/BUILD.md @@ -0,0 +1,38 @@ +# How to build the project + +## Docker + +Building with Docker is super easy. + +```shell +docker build -f Dockerfile . -t name, organization, or whatever you like < your > /acars_router:test +``` + +And the project should build with no issues. + +## Building acars_router from source + +If you desire to build `acars_router` from source, ensure you have [rust](https://www.rust-lang.org/tools/install) installed and up to date. `acars_router` build target is always the most recent Rust version, so you should not have to roll back to previous versions to get it built. + +Once you clone the repository and enter the repo's directory using a shell... + +Debugging: + +```shell +cargo build +``` + +Release + +```shell +cargo build --release +``` + +To run the project using cargo (useful for debugging): + +```shell + +cargo run -- +``` + +Or you can directly run/find the binary in the `target` directory.