Skip to content

Commit 7f1522f

Browse files
committed
feat: use func-e as default approach for envoy setup
Signed-off-by: bitliu <[email protected]>
1 parent d7c578e commit 7f1522f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,19 @@ run-router: build-router
2626
@export LD_LIBRARY_PATH=${PWD}/candle-binding/target/release && \
2727
./bin/router -config=config/config.yaml
2828

29+
# Prepare Envoy
30+
prepare-envoy:
31+
curl https://func-e.io/install.sh | sudo bash -s -- -b /usr/local/bin
32+
2933
# Run Envoy proxy
3034
run-envoy:
35+
@echo "Checking for func-e..."
36+
@if ! command -v func-e >/dev/null 2>&1; then \
37+
echo "func-e not found, installing..."; \
38+
$(MAKE) prepare-envoy; \
39+
fi
3140
@echo "Starting Envoy..."
32-
envoy --config-path config/envoy.yaml --component-log-level "ext_proc:trace,router:trace,http:trace"
41+
func-e run --config-path config/envoy.yaml --component-log-level "ext_proc:trace,router:trace,http:trace"
3342

3443
# Test the Rust library
3544
test-binding: rust

0 commit comments

Comments
 (0)