hango-io / rider Goto Github PK
View Code? Open in Web Editor NEWSDK for Envoy Lua extensions
License: Apache License 2.0
SDK for Envoy Lua extensions
License: Apache License 2.0
Duo to the technical architecture of the company, I have to use ENVOY gateway, can I use Rider plugin on ENVOY instead of Hango?
如题。
维护内部版本的二开envoy似乎不是很低成本的解决方案~
直接执行
❯
❯ sh local-up.sh
make: *** No rule to make target `build'. Stop.
❯
❯ pwd
/xxx/rider/examples/body_to_header_to_refresh
make报错找不到规则, 即 makefile 文件
建议直接在 local-up.sh 中指定 makefile 路径, 就不用退出来执行了
#! /bin/bash
set -o errexit
set -o nounset
set -o pipefail
BASE_ENVOY_IMAGE=${BASE_ENVOY_IMAGE:-"hangoio/envoy-proxy:v0.0.1-b9696c2"}
BASE_IMAGE=${BASE_ENVOY_IMAGE} IMAGE_TAG=rider:local-dev make -C ../../ build
FORCE_BUILD=0
if [[ $# -gt 0 ]]; then
if [[ $1 == "-f" ]]; then
FORCE_BUILD=1
fi
fi
if [[ $FORCE_BUILD == "1" ]]; then
docker-compose -f docker-compose.yaml up --build
else
docker-compose -f docker-compose.yaml up
fi
当前目录下直接执行
❯ pwd
/xxx/rider/examples/body_to_header_to_refresh
❯
❯ nohup sh local-up.sh > rider.log 2>&1 &
[1] 63892
❯
启动日志:
proxy_1 | [2022-03-28 18:01:46.954][7][debug][upstream] [external/envoy/source/common/upstream/strict_dns_cluster.cc:167] DNS refresh rate reset for web_service, refresh rate 5000 ms
curl -v http://127.0.0.1:8002/static-to-header
[root@k8s-master ~]# curl -v http://127.0.0.1:8002/static-to-header
GET /static-to-header HTTP/1.1
User-Agent: curl/7.29.0
Host: 127.0.0.1:8002
Accept: /
< HTTP/1.1 200 OK
< x-powered-by: Express
< content-type: application/json; charset=utf-8
< content-length: 542
< etag: W/"21e-f89/FNAikln2H1PTo6DTuvtnrDY"
< date: Mon, 28 Mar 2022 17:55:14 GMT
< x-envoy-upstream-service-time: 22
< server: envoy
<
{
"path": "/static-to-header",
"headers": {
"host": "127.0.0.1:8002",
"user-agent": "curl/7.29.0",
"accept": "/",
"x-forwarded-proto": "http",
"x-request-id": "4f0c50fb-55d4-465d-a5f3-654a295e59d4",
"x-envoy-expected-rq-timeout-ms": "15000",
"content-length": "0"
},
"method": "GET",
"body": "",
"fresh": false,
"hostname": "127.0.0.1",
"ip": "::ffff:172.19.0.2",
"ips": [],
"protocol": "http",
"query": {},
"subdomains": [],
"xhr": false,
"os": {
"hostname": "8b9dc5e3f1f0"
}
[internal] load metadata for hub.c.163.com/qingzhou/gateway-proxy:ci-61e1518f:
failed to solve with frontend dockerfile.v0: failed to create LLB definition: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
make: *** [build] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.