Skip to content

Commit 76b144c

Browse files
Sarthak160actions-user
authored andcommitted
Update keploy-karaf.md
Signed-off-by: Sarthak Shyngle <[email protected]>
1 parent 619ae3b commit 76b144c

File tree

1 file changed

+15
-24
lines changed

1 file changed

+15
-24
lines changed

versioned_docs/version-2.0.0/running-keploy/keploy-karaf.md

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,24 @@ keywords:
1414

1515
## Step 1: Download Required JARs and Keploy Version
1616

17-
Use Keploy's One click to install latest keploy binary -
17+
### Pre-requisites
18+
19+
- Linux kernel **5.15 or higher**
20+
- Tested with distributions:
21+
- **Fedora 40+**
22+
- **Ubuntu 22.04+**
23+
- **Debian 12+**
24+
25+
### Install Keploy Binary
26+
27+
Use Keploy's one-click installation to download and install the latest Keploy binary:
1828

1929
```bash
20-
curl --silent -O -L https://keploy.io/ent/install.sh && source install.sh
30+
curl --silent -O -L https://keploy.io/ent/install.sh && source install.sh
2131
```
2232

33+
### Download Required JARs
34+
2335
Use `wget` to download the necessary JAR files:
2436

2537
- [io.keploy.agent-2.0.1.jar](https://keploy-enterprise.s3.us-west-2.amazonaws.com/agent-jars/io.keploy.agent-2.0.1.jar)
@@ -34,7 +46,7 @@ wget https://keploy-enterprise.s3.us-west-2.amazonaws.com/agent-jars/org.jacoco.
3446

3547
## Step 2: Configure Apache Karaf
3648

37-
### Update `JAVA_OPTS` for Linux/Mac in `setenv` File
49+
### Update `JAVA_OPTS` for Linux in `setenv` File:
3850

3951
1. Navigate to the `bin` directory of your Apache Karaf installation.
4052
2. Open the `setenv` file for editing.
@@ -45,27 +57,6 @@ wget https://keploy-enterprise.s3.us-west-2.amazonaws.com/agent-jars/org.jacoco.
4557
export JAVA_OPTS="$JAVA_OPTS -javaagent:/path/to/org.jacoco.agent-0.8.12-runtime.jar=address=*,port=36320,destfile=jacoco-it.exec,output=tcpserver"
4658
```
4759

48-
### Update `JAVA_OPTS` for Windows in `setenv.bat` File
49-
50-
1. Navigate to the `bin` directory of your Apache Karaf installation.
51-
2. Open the `setenv.bat` file for editing.
52-
3. Add the paths of the downloaded agents under the `JAVA_OPTS` section. For example:
53-
54-
```bat
55-
set JAVA_OPTS=-javaagent:/path/to/io.keploy.agent-2.0.1.jar
56-
set JAVA_OPTS=%JAVA_OPTS% -javaagent:/path/to/org.jacoco.agent-0.8.12-runtime.jar=address=*,port=36320,destfile=jacoco-it.exec,output=tcpserver
57-
```
58-
59-
### Set Environment Variables as Java System Properties on Windows
60-
61-
On Windows, all environment variables should be passed as `-D` system properties for Java. Update the `JAVA_OPTS` section in `setenv.bat` to include the required variables. For example:
62-
63-
```bat
64-
set JAVA_OPTS=%JAVA_OPTS% -DAPI_KEY=xRp5nyiQ+B6yltBUpw==
65-
set JAVA_OPTS=%JAVA_OPTS% -DKEPLOY_MODE=RECORD
66-
set JAVA_OPTS=%JAVA_OPTS% -javaagent:/path/to/org.jacoco.agent-0.8.12-runtime.jar=address=*,port=36320,destfile=jacoco-it.exec,output=tcpserver
67-
```
68-
6960
Replace the placeholder values with actual paths and keys as needed.
7061

7162
## Step 3: Export Environment Variables

0 commit comments

Comments
 (0)