ci(rel): intro. rel_otp_apps.eterm
This commit is contained in:
parent
b17078b93f
commit
8835296c7a
|
@ -246,21 +246,10 @@ overlay_vars_pkg(pkg) ->
|
|||
].
|
||||
|
||||
relx_apps(ReleaseType) ->
|
||||
[ kernel
|
||||
, sasl
|
||||
, crypto
|
||||
, public_key
|
||||
, asn1
|
||||
, syntax_tools
|
||||
, ssl
|
||||
, os_mon
|
||||
, inets
|
||||
, compiler
|
||||
, runtime_tools
|
||||
, redbug
|
||||
relx_otp_apps() ++
|
||||
[ redbug
|
||||
, cuttlefish
|
||||
, emqx
|
||||
, {mnesia, load}
|
||||
, {ekka, load}
|
||||
, {emqx_plugin_libs, load}
|
||||
, observer_cli
|
||||
|
@ -271,9 +260,13 @@ relx_apps(ReleaseType) ->
|
|||
++ relx_apps_per_rel(ReleaseType)
|
||||
++ [{N, load} || N <- relx_plugin_apps(ReleaseType)].
|
||||
|
||||
relx_otp_apps() ->
|
||||
{ok, [Apps]} = file:consult("scripts/rel_otp_apps.eterm"),
|
||||
true = is_list(Apps),
|
||||
Apps.
|
||||
|
||||
relx_apps_per_rel(cloud) ->
|
||||
[ luerl
|
||||
, xmerl
|
||||
| [{observer, load} || is_app(observer)]
|
||||
];
|
||||
relx_apps_per_rel(edge) ->
|
||||
|
|
|
@ -39,21 +39,9 @@ rel_file("emqx-edge", Dir, RelVsn)->
|
|||
rel_file(Profile, Dir, RelVsn)->
|
||||
filename:join([Dir, RelVsn, Profile++".rel"]).
|
||||
|
||||
|
||||
%% Couldn't find a good way to get this list dynamicly.
|
||||
otp_apps() ->
|
||||
[ kernel
|
||||
, stdlib
|
||||
, sasl
|
||||
, crypto
|
||||
, public_key
|
||||
, asn1
|
||||
, syntax_tools
|
||||
, ssl
|
||||
, os_mon
|
||||
, inets
|
||||
, compiler
|
||||
, runtime_tools
|
||||
, mnesia
|
||||
, xmerl
|
||||
].
|
||||
{ok, [Apps]} = file:consult("scripts/rel_otp_apps.eterm"),
|
||||
true = is_list(Apps),
|
||||
lists:map(fun(App) when is_atom(App) -> App;
|
||||
({App, _}) -> App %% handle like {mnesia, load}
|
||||
end, Apps).
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
%% Single source of truth of list otp apps that we use
|
||||
[ kernel
|
||||
, stdlib
|
||||
, sasl
|
||||
, crypto
|
||||
, public_key
|
||||
, asn1
|
||||
, syntax_tools
|
||||
, ssl
|
||||
, os_mon
|
||||
, inets
|
||||
, compiler
|
||||
, runtime_tools
|
||||
, {mnesia, load}
|
||||
, xmerl
|
||||
].
|
Loading…
Reference in New Issue