Skip to content

Commit bb426be

Browse files
Update build_yc_360_script_linux.md
1 parent b665b6d commit bb426be

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/build/build_yc_360_script_linux.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Building the yCrash Agent on Linux
1+
# Building the yc-360 Script on Linux
22

3-
This guide outlines the steps to build the yCrash agent in Linux environment. You have two options for building the agent:
3+
This guide outlines the steps to build the yc-360 script in a Linux environment. You have two options for building the script:
44

55
1) Build via Dockerized Environment (Recommended)
66
2) Build on Bare Metal
@@ -30,7 +30,7 @@ RUN apk add --no-cache \
3030

3131
ENV PATH=${PATH}:/usr/local/go/bin
3232

33-
WORKDIR /opt/workspace/yc-agent
33+
WORKDIR /opt/workspace/yc-360-script
3434

3535
ENTRYPOINT ["/bin/sh"]
3636
```
@@ -46,23 +46,23 @@ _:
4646
echo "default"
4747

4848
alpine:
49-
docker build -f Dockerfile.base.alpine -t yc-agent-base:alpine .
49+
docker build -f Dockerfile.base.alpine -t yc-360-script-base:alpine .
5050

5151
base: alpine
52-
docker rm -f yc-agent-alpine || true
52+
docker rm -f yc-360-script-alpine || true
5353
docker run --init -d -ti --rm \
54-
--name yc-agent-alpine \
55-
-v $(CWD):/opt/workspace/yc-agent \
56-
yc-agent-base:alpine
54+
--name yc-360-script-alpine \
55+
-v $(CWD):/opt/workspace/yc-360-script \
56+
yc-360-script-base:alpine
5757

5858
shell:
59-
docker exec -it yc-agent-alpine /bin/sh
59+
docker exec -it yc-360-script-alpine /bin/sh
6060

6161
build:
62-
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/"
62+
docker exec -it yc-360-script-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
65-
To build the agent using the containerized environment, run the following command:
64+
#### Step 3: Build the yc-360 Script
65+
To build the script using the containerized environment, run the following command:
6666
```
6767
sudo make alpine base build
6868
```
@@ -71,7 +71,7 @@ After successful execution, the yc binary will be created in the `../yc-data-scr
7171

7272
## 2. Build on Bare Metal
7373

74-
If you prefer building the agent directly on your local system, ensure the following packages are installed.
74+
If you prefer building the yc-360 script directly on your local system, ensure the following packages are installed.
7575

7676
**Required Packages:**
7777
- go
@@ -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 yc-360 Script:
9696
```
9797
go build -o yc -ldflags='-s -w' -buildvcs=false && mkdir -p ../../bin/ && mv yc ../../bin/
9898
```

0 commit comments

Comments
 (0)