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) ->
|
relx_apps(ReleaseType) ->
|
||||||
[ kernel
|
relx_otp_apps() ++
|
||||||
, sasl
|
[ redbug
|
||||||
, crypto
|
|
||||||
, public_key
|
|
||||||
, asn1
|
|
||||||
, syntax_tools
|
|
||||||
, ssl
|
|
||||||
, os_mon
|
|
||||||
, inets
|
|
||||||
, compiler
|
|
||||||
, runtime_tools
|
|
||||||
, redbug
|
|
||||||
, cuttlefish
|
, cuttlefish
|
||||||
, emqx
|
, emqx
|
||||||
, {mnesia, load}
|
|
||||||
, {ekka, load}
|
, {ekka, load}
|
||||||
, {emqx_plugin_libs, load}
|
, {emqx_plugin_libs, load}
|
||||||
, observer_cli
|
, observer_cli
|
||||||
|
@ -271,9 +260,13 @@ relx_apps(ReleaseType) ->
|
||||||
++ relx_apps_per_rel(ReleaseType)
|
++ relx_apps_per_rel(ReleaseType)
|
||||||
++ [{N, load} || N <- relx_plugin_apps(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) ->
|
relx_apps_per_rel(cloud) ->
|
||||||
[ luerl
|
[ luerl
|
||||||
, xmerl
|
|
||||||
| [{observer, load} || is_app(observer)]
|
| [{observer, load} || is_app(observer)]
|
||||||
];
|
];
|
||||||
relx_apps_per_rel(edge) ->
|
relx_apps_per_rel(edge) ->
|
||||||
|
|
|
@ -39,21 +39,9 @@ rel_file("emqx-edge", Dir, RelVsn)->
|
||||||
rel_file(Profile, Dir, RelVsn)->
|
rel_file(Profile, Dir, RelVsn)->
|
||||||
filename:join([Dir, RelVsn, Profile++".rel"]).
|
filename:join([Dir, RelVsn, Profile++".rel"]).
|
||||||
|
|
||||||
|
|
||||||
%% Couldn't find a good way to get this list dynamicly.
|
|
||||||
otp_apps() ->
|
otp_apps() ->
|
||||||
[ kernel
|
{ok, [Apps]} = file:consult("scripts/rel_otp_apps.eterm"),
|
||||||
, stdlib
|
true = is_list(Apps),
|
||||||
, sasl
|
lists:map(fun(App) when is_atom(App) -> App;
|
||||||
, crypto
|
({App, _}) -> App %% handle like {mnesia, load}
|
||||||
, public_key
|
end, Apps).
|
||||||
, asn1
|
|
||||||
, syntax_tools
|
|
||||||
, ssl
|
|
||||||
, os_mon
|
|
||||||
, inets
|
|
||||||
, compiler
|
|
||||||
, runtime_tools
|
|
||||||
, mnesia
|
|
||||||
, xmerl
|
|
||||||
].
|
|
||||||
|
|
|
@ -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