Updated Building (markdown)

Hollow Man
2023-05-18 13:58:25 +03:00
parent dd73be7860
commit 028532bb98
+33 -33
@@ -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`.