Skip to content

Commit 7d1a3a0

Browse files
committed
Updated the linux document
1 parent 733b9dc commit 7d1a3a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/build/build_agent_linux.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This guide outlines the steps to build the yCrash agent in Linux environment. Yo
99

1010
This method uses an Alpine-based Docker image to set up a clean Go development environment with all required dependencies.
1111

12-
#### Step 1: Create a Dockerfile
12+
### Step 1: Create a Dockerfile
1313

1414
Create a `Dockerfile.base.alpine` and add the following content:
1515

@@ -34,7 +34,7 @@ WORKDIR /opt/workspace/yc-agent
3434

3535
ENTRYPOINT ["/bin/sh"]
3636
```
37-
#### Step 2: Create a Makefile
37+
### Step 2: Create a Makefile
3838
To simplify the build process, create a `Makefile` and add the following content:
3939

4040
```makefile
@@ -61,7 +61,7 @@ shell:
6161
build:
6262
docker exec -it yc-agent-alpine /bin/sh -c "cd cmd/yc && go build -o yc -ldflags='-s -w' -buildvcs=false && mkdir -p ../../bin/ && mv yc ../../bin/"
6363
```
64-
#### Step 3: Build the Agent
64+
### Step 3: Build the Agent
6565
To build the agent using the containerized environment, run the following command:
6666
```
6767
sudo make alpine base build
@@ -92,7 +92,7 @@ If you prefer building the agent directly on your local system, ensure the follo
9292
```
9393
cd ../yc-data-script/cmd/yc
9494
```
95-
#### Step 2: Then run the following command to build the agent:
95+
### Step 2: Then run the following command to build the agent:
9696
```
9797
go build -o yc -ldflags='-s -w' -buildvcs=false && mkdir -p ../../bin/ && mv yc ../../bin/
9898
```

0 commit comments

Comments
 (0)