-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
bug: APISIX_STAND_ALONE environment doesn't work as expected #10249
Comments
@juzhiyuan Hi, I tried to reproduce this bug in my local environment. I found it will download |
It may be related to this change apache/apisix-docker#494 |
Conclusion: If this issue persists for other users where startup time is large due to network issues then we can move the download of the utility inside the image build. // @juzhiyuan |
Thanks for pointing out the real reason. For new users: They need to learn the logic behind installation. So I would suggest to keep improving this to make it ready after the container started. |
@juzhiyuan So should we close this issue? Or should the issue be changed to something like "improve startup time by removing download process in startup script" to keep track? |
@Revolyssup Can we download the |
Yes that is what I had done initially. But @soulbird had suggested that having an Open source tool in the image can be a security issue so I had moved it to startup script informing that this might increase startup time. What do you suggest? @monkeyDluffy6017 |
how about ? sed -i 's/\(role: \).*/\1data_plane/' config.yaml
sed -i 's/\(config_provider: \).*/\1yaml/' config.yaml |
@kamly LGTM, could you have a try? |
@kamly |
@Revolyssup the |
if |
We need set the |
I agree with @Revolyssup, just using string replacement may not meet the situation of subsequent config content changes, using |
@jiangfucheng @Revolyssup We need to fix the problem, download the |
@kamly Would you like to create a PR replacing usage of yq with sed? |
yes, of course, wait, wait ~ |
@kamly since this is an urgent issue, if you can't make a PR by today you can hand it over to me |
I make a PR apache/apisix-docker#508 , please have a look ~ |
PR merged apache/apisix-docker#508 |
Current Behavior
After following the document's guide to run Standalone mode, it's running successfully but I can't access the gateway, and the
config.yaml
looks incorrect.Expected Behavior
No response
Error Logs
No response
Steps to Reproduce
config.yaml
is usingetcd
as a configuration store.Environment
apisix version
): 3.5.0uname -a
): Linux e6a1b0d71e58 4.4.302+ #64570 SMP Thu Jul 20 00:04:37 CST 2023 x86_64 GNU/Linuxopenresty -V
ornginx -V
): N/Acurl http://127.0.0.1:9090/v1/server_info
):luarocks --version
): N/AThe text was updated successfully, but these errors were encountered: