@next-core/brick-container 3.21.14 → 3.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deploy/install_postscripts.sh +26 -0
- package/deploy/update_postscript.sh +18 -0
- package/dist/all.7a7dca24.js +3 -0
- package/dist/all.7a7dca24.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/main.5898de64.js +2 -0
- package/dist/{main.2f5e15cb.js.map → main.5898de64.js.map} +1 -1
- package/dist/{polyfill.7a740474.js → polyfill.ecd404dc.js} +1 -1
- package/dist/preview/core.927c733f.js +1 -0
- package/dist/preview/core.927c733f.js.map +1 -0
- package/dist/preview/index.html +1 -1
- package/dist/preview/{main.ba7c9901.js → main.c04b11dc.js} +1 -1
- package/dist/preview/{main.ba7c9901.js.map → main.c04b11dc.js.map} +1 -1
- package/package.json +5 -5
- package/tools/package-union/report_union_micro_app.py +6 -3
- package/tools/report_installed_brick_next_package.py +8 -3
- package/tools/report_installed_theme_template.py +5 -1
- package/tools/utils/__init__.py +0 -0
- package/tools/utils/get_headers.py +27 -0
- package/dist/all.19b4304b.js +0 -3
- package/dist/all.19b4304b.js.map +0 -1
- package/dist/main.2f5e15cb.js +0 -2
- package/dist/preview/core.c4a7b154.js +0 -1
- package/dist/preview/core.c4a7b154.js.map +0 -1
- /package/dist/{all.19b4304b.js.LICENSE.txt → all.7a7dca24.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# easyops 安装根目录
|
|
4
|
+
install_base="/usr/local/easyops"
|
|
5
|
+
|
|
6
|
+
plugin_name='brick_next_v3'
|
|
7
|
+
|
|
8
|
+
install_path="${install_base}/${plugin_name}"
|
|
9
|
+
|
|
10
|
+
deploy_init_path="/usr/local/easyops/deploy_init"
|
|
11
|
+
config_tool="${deploy_init_path}/tools/config_tool"
|
|
12
|
+
|
|
13
|
+
export LD_LIBRARY_PATH=/usr/local/easyops/ens_client/sdk:${LD_LIBRARY_PATH}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
value=$(${config_tool} get --appID "deploy_init" --namespaceName "common" --key "check_auth_token.enable")
|
|
17
|
+
if [[ ${value} == "true" ]]; then
|
|
18
|
+
# 初始化默认命名空间,并生成 clientId 和 secret
|
|
19
|
+
${config_tool} init -f "${install_path}/conf/config.yaml"
|
|
20
|
+
if [[ $? -ne 0 ]];then
|
|
21
|
+
echo "init brick_next_v3 config namespace error, exit"
|
|
22
|
+
exit 1
|
|
23
|
+
fi
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
|
|
@@ -7,6 +7,10 @@ plugin_name='brick_next_v3'
|
|
|
7
7
|
|
|
8
8
|
install_path="${install_base}/${plugin_name}"
|
|
9
9
|
|
|
10
|
+
deploy_init_path="/usr/local/easyops/deploy_init"
|
|
11
|
+
config_tool="${deploy_init_path}/tools/config_tool"
|
|
12
|
+
|
|
13
|
+
|
|
10
14
|
function check_service_availability() {
|
|
11
15
|
services=$1
|
|
12
16
|
for service in ${services[*]}; do
|
|
@@ -45,12 +49,26 @@ function report_package() {
|
|
|
45
49
|
fi
|
|
46
50
|
}
|
|
47
51
|
|
|
52
|
+
export LD_LIBRARY_PATH=/usr/local/easyops/ens_client/sdk:${LD_LIBRARY_PATH}
|
|
53
|
+
|
|
48
54
|
# 优先取环境变量里面的org
|
|
49
55
|
if [[ ${org}X == X ]]; then
|
|
50
56
|
org=$(/usr/local/easyops/deploy_init/tools/get_env.py common org)
|
|
51
57
|
[[ $? -ne 0 ]] && echo "get org error, exit" && exit 1
|
|
52
58
|
fi
|
|
53
59
|
|
|
60
|
+
|
|
61
|
+
value=$(${config_tool} get --appID "deploy_init" --namespaceName "common" --key "check_auth_token.enable")
|
|
62
|
+
if [[ ${value} == "true" ]]; then
|
|
63
|
+
# 初始化默认命名空间,并生成 clientId 和 secret
|
|
64
|
+
${config_tool} init -f "${install_path}/conf/config.yaml"
|
|
65
|
+
if [[ $? -ne 0 ]];then
|
|
66
|
+
echo "import brick_next_v3 config namespace error, exit"
|
|
67
|
+
exit 1
|
|
68
|
+
fi
|
|
69
|
+
fi
|
|
70
|
+
|
|
71
|
+
|
|
54
72
|
# 上报当前安装小产品
|
|
55
73
|
check_service
|
|
56
74
|
report_package ${install_base} ${org} ${install_path}
|