Skip to content

Commit 60c92ea

Browse files
author
Anastasia Kroshkina
committed
добавила раздел remote на английском
1 parent e99c8ce commit 60c92ea

1 file changed

Lines changed: 28 additions & 1 deletion

File tree

docs/agent/reachability.en.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,39 @@ To use this feature, you need to set two parameters:
5252
4. Upon successful completion of all steps, a file named `.svace-dir/analyze-res/call-graph-results/<project_name>-graph-order.json` containing the call graph will appear in the project directory.
5353

5454
!!! warning "Saving a file"
55-
Prior to Svace version svace-5.0.260311, the call graph file was saved to the folder `.svace-dir/analyze-res/call-graph`
55+
Prior to Svace version 5.0.260311, the call graph file was saved to the folder `.svace-dir/analyze-res/call-graph`
5656

5757
5. Launch the scan using Johnny, for example:
5858
```shell
5959
johnny-linux-amd64 scan dir . --api_url "http(s)://<codescoring_host>" --api_token "<token from step 1>" --cg-path .svace-dir/analyze-res/call-graph-results/<project_name>-graph-order.json --cg-lang java
6060
```
61+
## Remote Analysis Server
62+
63+
In [Svace 5.0.260311](/on-premise/postgres-upgrade-compose/), it is now possible to use a remote analysis server. This allows you to configure
64+
the analysis server once, and its users can submit projects for analysis without specifying credentials.
65+
66+
### Server configuration steps
67+
68+
1. Specify environment variables
69+
```shell
70+
SVACE_LIC_SERVER_URL=http(s)://<codescoring_host>
71+
SVACE_LIC_SERVER_TOKEN=<токен CodeScoring>
72+
```
73+
2. Initialization
74+
```shell
75+
svace server init
76+
```
77+
3. Start the server
78+
```shell
79+
svace server start
80+
```
81+
4. Submit the project for analysis
82+
```shell
83+
svace remote analyze --build-call-graph-only
84+
```
85+
86+
After configuring the server, the analysis is simplified — you do not need to specify the license parameters ```--license-server-url``` and ```--license-server-token```.
87+
6188

6289
## Viewing results
6390

0 commit comments

Comments
 (0)