Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ad-c2-4ytzbz6zsd opened this issue Jun 20, 2023 · 1 comment

Comments

@ad-c2-4ytzbz6zsd
Copy link

直接执行

❯
❯ 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
❯
@ad-c2-4ytzbz6zsd
Copy link
Author

local-down.sh 也需要调整下

#! /bin/bash

set -o errexit
set -o nounset
set -o pipefail

docker-compose down

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant