Giter Club home page Giter Club logo

rider's People

Contributors

caitong93 avatar metaverse-space avatar starryvae avatar wbpcode avatar xianyanglin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rider's Issues

local-up.sh 不能直接执行,需要退到 rider 目录下执行

直接执行

❯
❯ 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
❯

求助 curl -v http://127.0.0.1:8002/static-to-header 返回Head中 无< x-echo-foo: Lua is awesome!

启动日志:
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

  • About to connect() to 127.0.0.1 port 8002 (#0)
  • Trying 127.0.0.1...
  • Connected to 127.0.0.1 (127.0.0.1) port 8002 (#0)

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"
}

  • Connection #0 to host 127.0.0.1 left intact

start fail

fatal: not a git repository (or any of the parent directories): .git
docker build --build-arg BASE_IMAGE=hub.c.163.com/qingzhou/gateway-proxy:ci-61e1518f -t rider:local-dev .
[+] Building 5.3s (3/3) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 120B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> ERROR [internal] load metadata for hub.c.163.com/qingzhou/gateway-proxy:ci-61e1518f 5.2s

[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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.