mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
Updated Building (markdown)
+10
-30
@@ -9,22 +9,21 @@ git clone https://github.com/kubescape/kubescape
|
||||
cd kubescape
|
||||
```
|
||||
|
||||
## Build on Linux/MacOS
|
||||
## Minimum build
|
||||
|
||||
### Minimum build
|
||||
```
|
||||
go build -tags=static .
|
||||
```
|
||||
|
||||
1. Build kubescape
|
||||
## Build with git enabled
|
||||
> **Note**
|
||||
> For performance reasons it's better to build with libgit2 when **scanning git repos**.
|
||||
|
||||
```
|
||||
go build -tags=static .
|
||||
```
|
||||
|
||||
### With git enabled
|
||||
### Linux/MacOS
|
||||
|
||||
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).
|
||||
> `cmake` and `pkg-config` are 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
|
||||
@@ -42,26 +41,7 @@ cd kubescape
|
||||
make test
|
||||
```
|
||||
|
||||
## Build on Windows
|
||||
|
||||
### Minimum build
|
||||
|
||||
1. Install MSYS2 _(needed only for the first time)_
|
||||
|
||||
```
|
||||
build.bat install
|
||||
```
|
||||
|
||||
2. Build kubescape
|
||||
|
||||
```
|
||||
go build -tags=static .
|
||||
```
|
||||
|
||||
### With git enabled
|
||||
|
||||
> **Note**
|
||||
> For performance reasons it's better to build with this dependency when **scanning git repos**.
|
||||
### Windows
|
||||
|
||||
1. Install MSYS2 & build libgit _(needed only for the first time)_
|
||||
> **Note**
|
||||
|
||||
Reference in New Issue
Block a user