Skip to content

Commit 5b2dc98

Browse files
committed
Update installation guide
Update installation guide Update installation guide Update installation guide
1 parent 20d9c79 commit 5b2dc98

21 files changed

+187
-230
lines changed

docs/configuration.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## Using the IDE Plugin
2+
3+
### Get a Demo App or Any App You Like to Migrate
4+
5+
1. Clone the Cool-store application:
6+
```bash
7+
git clone https://github.com/konveyor-ecosystem/coolstore.git
8+
```
9+
2. Navigate to File > Open in VSCode and locate the folder we just cloned.
10+
11+
### Running Kai RPC server
12+
13+
1. Users will land on the welcome page after installation as shown below. If the Welcome Page does not appear, proceed to the step 2.
14+
![walkthrough](images/walkthrough-1.png)
15+
If "Set up Konveyor" is not available in the list, click the More button for additional options.
16+
![walkthrough](images/walkthrough-2.png)
17+
2. If the welcome page does not appear, open the command palette by pressing Command + Shift + P. This will bring up a list of commands.
18+
![walkthrough](images/walkthrough-3.png)
19+
From the command palette, locate and select the "Set up Konveyor" option. This will guide you through the configuration process.
20+
![walkthrough](images/walkthrough-4.png)
21+
3. Configure Konveyor for your project.
22+
- User has an option to override binaries and custom rules, however it comes with the default packaged binaries and custom rules.
23+
![setup-konveyor](images/setup-konveyor.png)
24+
- The Konveyor extension allows you to add custom rules to the analyzer. This is useful when you want to apply your own rules during analysis.
25+
- Configuring analysis arguments is necessary to determine which rules apply to the project during analysis. Set up analysis arguments specific to your project by selecting the appropriate options and pressing "Enter" to save the changes.
26+
- To confirm your arguments, navigate to your project directory and open `/.vscode/settings.json`.
27+
![setup-konveyor](images/setup-konveyor-2.png)
28+
- Next, set up the Generative AI key for your project. This step will open the `provider-settings.yaml` file. By default, it is configured to use OpenAI. To change the model, update the anchor `&active` to the desired block. Modify this file with the required arguments, such as the model and API key, to complete the setup. Sample of the `provider-settings.yaml` can be found [here.](https://github.com/konveyor/editor-extensions/blob/main/vscode/resources/sample-provider-settings.yaml)
29+
- As the final step, select "Get Solution Parameters".
30+
4. Once the configuration is done, click on start server button. Logs are collected at output channel named konveyor-analyzer.
31+
![start-server](images/start-server.png)

docs/debug.md

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
## Debug Kai And File Issues
2+
3+
Logs are divided into two separate files under your working directory at /.vscode/konveyor-logs:
4+
5+
- kai-analyzer-server.log: This file is useful for debugging issues related to running analysis. It provides details about the Java and Maven installation, the initialization of the Java connection, and the startup process of the analyzer server.
6+
7+
- kai-rpc-server.log: This log is intended for debugging the RPC server and any communication with the AI system. It captures interactions involved in fixing incidents and retrieving results.
8+
9+
## File an Issue
10+
11+
Please Fill out all the information requested below when opening an issue [here](https://github.com/konveyor/kai/issues).
12+
13+
### Detailed Guidelines
14+
15+
```
16+
Help us resolve your issue faster by providing detailed information. Please follow the structure below to ensure we have all the necessary details:
17+
18+
1.Issue Description**
19+
- Summary: Briefly describe the problem.
20+
- Logs: Attach any relevant log files (e.g., `kai-analyzer-server.log` or `kai-rpc-server.log`) to help us identify the issue.
21+
22+
2. Steps to Reproduce**
23+
- Provide a step-by-step guide on how to reproduce the issue if possible.
24+
25+
3. Environment Details
26+
Please include the following information to help us better understand your setup:
27+
- Operating System (OS): (e.g., Windows 11, macOS Ventura, Ubuntu 22.04)
28+
- Java Version: (e.g., OpenJDK 17.0.2)
29+
- Maven Version: (e.g., Apache Maven 3.8.4)
30+
- VS Code Version: (e.g., 1.82.0)
31+
- Kai Version: (e.g., v0.0.6)
32+
33+
4. Additional Details
34+
- Error Messages: Include any error messages or stack traces you encountered.
35+
- Screenshots: Attach screenshots to illustrate the issue, if applicable.
36+
- Expected Behavior: Describe what you expected to happen.
37+
- Actual Behavior: Describe what actually happened.
38+
39+
```
40+
41+
### Troubleshooting:
42+
43+
- **No Incidents Found**: Check the `.vscode/settings.json` file in your working directory to ensure the targets are correctly recorded.
44+
45+
- **Failed to Run Initial Analysis**: Verify that the correct Java and Maven versions are set in the current environment. Detailed logs can be found in `kai-analyzer-server.log`.
46+
47+
48+
628 KB
Loading
610 KB
Loading

docs/images/run_analysis.png

233 KB
Loading

docs/images/setup-konveyor-2.png

525 KB
Loading

docs/images/walkthrough-1.png

445 KB
Loading

docs/images/walkthrough-2.png

521 KB
Loading

docs/images/walkthrough-3.png

466 KB
Loading

docs/images/walkthrough-4.png

466 KB
Loading

docs/installation.md

+1-23
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ We provide pre-built versions of the IDE plugin as a `vsix` file at [editor-exte
77
## Pre-requisite
88

99
1. Install **Java 17 or later** and the latest version of **Maven**.
10-
2. Set up the required environment variables for the LLM service you plan to use. Refer to the [LLM Selection Guide](/docs/llm_selection.md) for details.
1110

12-
- For OpenAI: `OPENAI_API_KEY=my-secret-api-key-value`
13-
- For IBM BAM: `GENAI_KEY=my-secret-api-key-value`
11+
2. Required LLM model and key to use the Kai. Refer to the [LLM Selection Guide](/docs/llm_selection.md) for details.
1412

1513
## IDE Plugin Installation Methods
1614

@@ -38,23 +36,3 @@ Only follow these steps if you decided to skip installing from the UI side and y
3836
code --install-extension path/to/your-extension.vsix
3937
```
4038
3. Restart/reload VSCode.
41-
42-
## Using the IDE Plugin
43-
44-
### Get a Demo App
45-
46-
1. Clone the Cool-store application:
47-
```bash
48-
git clone https://github.com/konveyor-ecosystem/coolstore.git
49-
```
50-
2. Navigate to File > Open in VSCode and locate the folder we just cloned.
51-
52-
### Running Kai RPC server
53-
54-
1. Open walkthrough after installing the extension to setup Konveyor
55-
![walkthrough](images/walkthrough.png)
56-
2. User has an option to override binaries and custom rules, however it comes with the default packaged binaries and custom rules.
57-
![setup-konveyor](images/setup-konveyor.png)
58-
3. Configure analysis argument is necessary in order to know which rules apply to the project during analysis.
59-
4. Once the configuration is done, click on start server button. Logs are collected at output channel named konveyor-analyzer.
60-
![start-server](images/start-server.png)

docs/scenarios/catalogService.png

1.16 MB
Loading
700 KB
Loading
845 KB
Loading

0 commit comments

Comments
 (0)