Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

优化自动排包的配置方式 #330

Open
lvjing2 opened this issue Nov 23, 2023 · 3 comments · Fixed by sofastack/sofa-ark#814
Open

优化自动排包的配置方式 #330

lvjing2 opened this issue Nov 23, 2023 · 3 comments · Fixed by sofastack/sofa-ark#814
Assignees
Labels
good first issue Good for newcomers

Comments

@lvjing2
Copy link
Collaborator

lvjing2 commented Nov 23, 2023

问题描述

当前使用自动排包功能需要配置步骤较多,容易踩坑

  1. 从站点拷贝 rules.txt 文件下来,放在本工程 ./conf/ark/ 目录下
  2. 还需要在 pom.xml 里配置 packExcludesConfig
  3. packExcludesConfig 配置的值不能是 ./conf/ark/rules.txt 而只能是 rules.txt

问题解决思路

提供默认能力,继续使用 ark 提供的默认配置文件,在 conf/ark/bootstrap.properties, 或者 conf/ark/bootstrap.properties 里定义自动排包的配置key和value

image

@lvjing2 lvjing2 added the good first issue Good for newcomers label Nov 23, 2023
@lvjing2 lvjing2 mentioned this issue Nov 27, 2023
21 tasks
@lvjing2 lvjing2 mentioned this issue Dec 8, 2023
36 tasks
@yuanyuancin
Copy link
Collaborator

当前业务配置 /conf/ark/bootstrap.properties, 会在container启动时扫描到,并缓存到 ArkConfigs.CFG

排包配置,实际不需要运行时使用,不必要缓存到 ArkConfigs.CFG

@yuanyuancin
Copy link
Collaborator

可以做成配置优先的原则,存在 /conf/ark/rules.txt 文件,即可自动排包,不需要在打包插件中配置

@lvjing2
Copy link
Collaborator Author

lvjing2 commented Dec 29, 2023

  1. 修改配置文件名
  2. 修改配置文件格式

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants