jeecgboot / JeecgBoot

🔥「企业级低代码平台」前后端分离架构SpringBoot 2.x/3.x,SpringCloud,Ant Design&Vue3,Mybatis,Shiro,JWT。强大的代码生成器让前后端代码一键生成,无需写任何代码! 引领新的开发模式OnlineCoding->代码生成->手工MERGE,帮助Java项目解决70%重复工作,让开发更关注业务,既能快速提高效率,帮助公司节省成本,同时又不失灵活性。
http://www.jeecg.com
Apache License 2.0
40.06k stars 14.69k forks source link

docker JAR分离大包部署 #6196

Closed caigaolin closed 4 months ago

caigaolin commented 4 months ago
版本号:

3.6.2

分支: master?还是springboot3?
前端版本: vue3版?还是 vue2版?
问题描述:

docker分离式部署,jar单独放到lib文件夹下,启动报错,服务器是linux

截图&代码:

分离大包方式,源码情况

image

部署文件夹

image

启动报错

image image

友情提示(为了提高issue处理效率):

zhangdaiscott commented 4 months ago

现在的swagger用的不是openapi,这是你们自己改的?

caigaolin commented 4 months ago

您好,没有进引入依赖这个是版本自带的

2024年4月30日 10:14,JEECG @.***> 写道:

现在的swagger用的不是openapi,这是你们自己改的?

— Reply to this email directly, view it on GitHub https://github.com/jeecgboot/jeecg-boot/issues/6196#issuecomment-2084185756, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALAGWOWJ7UTNPWYIZAEQYC3Y73467AVCNFSM6AAAAABG6B6KOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBUGE4DKNZVGY. You are receiving this because you authored the thread.

zhangdaiscott commented 4 months ago

分支: master?还是springboot3? 前端版本: vue3版?还是 vue2版?

caigaolin commented 4 months ago

分支是3.6.2

2024年4月30日 13:56,JEECG @.***> 写道:

分支: master?还是springboot3? 前端版本: vue3版?还是 vue2版?

— Reply to this email directly, view it on GitHub https://github.com/jeecgboot/jeecg-boot/issues/6196#issuecomment-2084436662, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALAGWOWNE4V4ZYUNZXKVAVDY74XA7AVCNFSM6AAAAABG6B6KOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBUGQZTMNRWGI. You are receiving this because you authored the thread.

zhangdaiscott commented 4 months ago

zj 测试

EightMonth commented 4 months ago

jar分离打包部署文档:https://help.jeecg.com/java/publish/jarlib.html docker部署方案请参考官方文档:https://help.jeecg.com/java/setup/dockerset/soft.html 官方文档中,并未提供分离大包部署方案的docker方案,如果使用默认的dockerfile打包,无法将lib目录打包进入镜像,需要修改dockerfile 把lib目录使用COPY命令把lib目录复制进入docker镜像打包即可

caigaolin commented 4 months ago

上图项目依赖的包大部分都在lib文件下下,base-upms-biz-test.jar里面只有几个项目核心的依赖包,而且很下,每次只需上传这个jar就可以,启动时采用:执行run.sh就可以,只要依赖包不升级版本lib就不用替换。采用这种分离时部署,减少主jar包过大。咱们提供的有window版本的,但是docker部署的没有,咱们提供的单体框架,我尝试这种形式不行。还请指导完善。

--

业精于勤,荒于嬉,行成于思,毁于随。

在 2024-05-14 14:13:11,"EightMonth" @.***> 写道:

docker部署方案请参考官方文档:https://help.jeecg.com/java/setup/dockerset/soft.html 官方文档中,并未提供分离大包部署方案,麻烦说明如何做的分离大包部署方案,以便于后续提供支持

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>