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

Custom Runtime 如果启动命令是java -jar,需要将codeUri打成zip包 #890

Closed
lowkeyrd opened this issue Nov 23, 2022 · 0 comments
Closed
Labels
Pre-Release 待发布

Comments

@lowkeyrd
Copy link
Contributor

s 现在打包的逻辑是按codeUri后缀区分的,codeUri后缀是jar、war、zip,deploy时就不再进行打包直接传文件,否则会将codeUri打成zip包
https://github.com/devsapp/fc-deploy/blob/8be93bd33c729a7edded2486a96e55d7acfb8fbb/src/lib/fc/function.ts#L445

示例:
https://github.com/devsapp/start-web-framework/blob/master/web-framework/java/springboot/src/s.yaml#L52
https://github.com/devsapp/start-fc/blob/master/custom-function/java8/fc-custom-java8-http/src/s.yaml#L57

但是现在直接传jar包有个限制,不能以jara -jar方式启动,参考现在控制台的提示
image

因此打包时需要新增一个条件,当启动命令包含java -jar时,需要把jar打成zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pre-Release 待发布
Projects
None yet
Development

No branches or pull requests

2 participants