apisix-java-plugin-runner icon indicating copy to clipboard operation
apisix-java-plugin-runner copied to clipboard

help request: windows打包docker镜像

Open MorganArthur opened this issue 2 years ago • 3 comments

Description

我在windows上打包apisix和java-plugin-runner的镜像,报错: image 我之前在apisix-java-plugin-runner还是0.2.0版本的时候使用过这样打包,当时没有问题,由于现在我换电脑了,没办法获取之前的电脑环境,但是实际上我也没有配置什么东西,都是默认配置。现在打镜像却报这样的错,不太明白是哪里出了问题?

Environment

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

MorganArthur avatar Oct 08 '22 07:10 MorganArthur

我发现使用2.15.0-alpine就可以打包镜像,使用2.99.0-debian就不行

MorganArthur avatar Oct 08 '22 07:10 MorganArthur

我发现使用2.15.0-alpine就可以打包镜像,使用2.99.0-debian就不行

I don't think the problem is project related, it's your privatization changes that are causing the image build to fail.

You should analyze it according to the error prompt.

tzssangglass avatar Oct 08 '22 10:10 tzssangglass

apisix:2.99.0-debian uses apt as package management tool instead of apk, the problem is very basic. You need to tweak some commands instead of simply changing the base image.

soulbird avatar Oct 08 '22 14:10 soulbird

RUN apt -y install openjdk-11-jdk can be an alternative command @MorganArthur

OrezzerO avatar Nov 07 '22 10:11 OrezzerO