From 028532bb982459814b2f547bf59e7784254fbe0e Mon Sep 17 00:00:00 2001 From: Hollow Man Date: Thu, 18 May 2023 13:58:25 +0300 Subject: [PATCH] Updated Building (markdown) --- Building.md | 66 ++++++++++++++++++++++++++--------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/Building.md b/Building.md index cd9126d..77f0da6 100644 --- a/Building.md +++ b/Building.md @@ -9,6 +9,39 @@ git clone https://github.com/kubescape/kubescape cd kubescape ``` +## Build on Linux/MacOS + +### Minimum build + +1. Build kubescape + + ``` + go build -tags=static . + ``` + +### With git enabled + +1. Install libgit2 dependency _(needed only for the first time)_ + > **Note** + > 1. For performance reasons it's better to build with this dependency when **scanning git repos**. + > 2. `cmake` and `pkg-config` is required to build libgit2. You can install it by running `sudo apt-get install cmake pkg-config` (Linux) or `brew install cmake pkg-config` (macOS). + + ``` + make libgit2 + ``` + +2. Build kubescape + + ``` + make build + ``` + +3. Test + + ``` + make test + ``` + ## Build on Windows ### Minimum build @@ -45,39 +78,6 @@ cd kubescape make build ``` -## Build on Linux/MacOS - -### Minimum build - -1. Build kubescape - - ``` - go build -tags=static . - ``` - -### With git enabled - -1. Install libgit2 dependency _(needed only for the first time)_ - > **Note** - > 1. For performance reasons it's better to build with this dependency when **scanning git repos**. - > 2. `cmake` and `pkg-config` is required to build libgit2. You can install it by running `sudo apt-get install cmake pkg-config` (Linux) or `brew install cmake pkg-config` (macOS). - - ``` - make libgit2 - ``` - -2. Build kubescape - - ``` - make build - ``` - -3. Test - - ``` - make test - ``` - ## After building Now the kubescape binary should be available in your current directory and you can interact with it using `./kubescape`.