Skip to content

Commit 7a25f41

Browse files
ci: add protoc for zentinel-agent-protocol build
The zentinel-agent-protocol crate uses prost-build which requires protoc at compile time. Install protobuf-compiler in CI jobs.
1 parent e7dc19b commit 7a25f41

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
path: target
4949
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock') }}
5050
restore-keys: ${{ runner.os }}-cargo-clippy-
51+
- name: Install protoc
52+
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
5153
- run: cargo clippy --workspace --all-targets -- -D warnings
5254

5355
test:
@@ -72,4 +74,6 @@ jobs:
7274
path: target
7375
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
7476
restore-keys: ${{ runner.os }}-cargo-test-
77+
- name: Install protoc
78+
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
7579
- run: cargo test --workspace

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,25 @@ JavaScript scripting agent for [Zentinel](https://github.com/zentinelproxy/zenti
1313

1414
## Installation
1515

16-
### From crates.io
16+
### Using Bundle (Recommended)
17+
18+
```bash
19+
# Install just this agent
20+
zentinel bundle install js
21+
22+
# Or install all bundled agents
23+
zentinel bundle install
24+
```
25+
26+
The bundle command downloads the correct binary for your platform and places it in the standard location. See the [bundle documentation](https://zentinelproxy.io/docs/deployment/bundle/) for details.
27+
28+
### Using Cargo
1729

1830
```bash
1931
cargo install zentinel-agent-js
2032
```
2133

22-
### From source
34+
### From Source
2335

2436
```bash
2537
git clone https://github.com/zentinelproxy/zentinel-agent-js
@@ -241,7 +253,9 @@ function on_response_headers(response) {
241253
agents {
242254
agent "js" {
243255
type "custom"
244-
unix-socket "/var/run/zentinel/js.sock"
256+
transport "unix_socket" {
257+
path "/var/run/zentinel/js.sock"
258+
}
245259
events "request_headers" "response_headers"
246260
timeout-ms 100
247261
failure-mode "open"

0 commit comments

Comments
 (0)