mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
Updated Building (markdown)
+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`.
|
||||
|
||||
Reference in New Issue
Block a user