Skip to content

Bug: The ./build-apisix-runtime.sh latest command should remove the "latest" argument. #12476

@coder2z

Description

@coder2z

Current Behavior

When compiling APISIX using Docker, the install_apisix_runtime logic is executed, which calls build-apisix-runtime.sh latest.

However, in the build-apisix-runtime.sh script, when the "latest" parameter is added, it triggers the following logic:

https://github.com/api7/apisix-build-tools/blob/master/build-apisix-runtime.sh#L67

if ([ $# -gt 0 ] && [ "$1" == "latest" ]) || [ "$runtime_version" == "0.0.0" ]; then
    debug_args="--with-debug"
fi

The addition of the --with-debug flag causes performance degradation in the production environment.

Expected Behavior

If it's a production version, the --with-debug parameter should be removed.

Error Logs

No response

Steps to Reproduce

latest docker

Environment

  • APISIX version (run apisix version): latest
  • Operating system (run uname -a): liunx
  • OpenResty / Nginx version (run openresty -V or nginx -V): latest
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info): latest
  • APISIX Dashboard version, if relevant: latest
  • Plugin runner version, for issues related to plugin runners: latest
  • LuaRocks version, for installation issues (run luarocks --version): latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionlabel for questions asked by users

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions