Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backport of #4634 add name don't override config with env template name/cookie don't hardcode name-arg, use vm.args template update release vm.args with name/cookie add templates fix sed set the cookie remove templates set cookie on command line remove echo short and silent changes after cherry-pick
- Loading branch information
1 parent
2289f26
commit 45d832a
Showing
31 changed files
with
1,276 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,6 @@ | |
sup.bash | ||
|
||
_rel/ | ||
rel/relx.config | ||
rel/dev-vm.args | ||
rel/vm.args | ||
|
||
erlang.mk | ||
.erlang.mk | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{lib_dirs, ["applications" | ||
,"core" | ||
,"deps" | ||
]}. | ||
|
||
{include_src, false}. | ||
{include_erts, true}. | ||
{dev_mode, false}. | ||
|
||
{generate_start_script, false}. | ||
{extended_start_script, false}. | ||
|
||
{sys_config, "rel/ci.sys.config"}. | ||
{vm_args, "rel/ci.vm.args"}. | ||
|
||
{overlay, [{copy, "../core/sup/priv/sup", "{{output_dir}}/bin/"} | ||
,{copy, "nodetool", "{{output_dir}}/bin/"} | ||
,{template, "kazoo", "{{output_dir}}/bin/kazoo"} | ||
]}. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
ToName = fun (App) -> list_to_atom(hd(string:tokens(App,"-"))) end, | ||
|
||
Apps = [list_to_atom(App) || "applications/"++App = Dir <- filelib:wildcard("applications/*"), filelib:is_dir(Dir)], | ||
Core = [list_to_atom(App) || "core/"++App = Dir <- filelib:wildcard( "core/*"), filelib:is_dir(Dir)], | ||
Deps = [list_to_atom(App) || "deps/"++App = Dir <- filelib:wildcard( "deps/*"), filelib:is_dir(Dir)], | ||
|
||
ToFilterOut = [rabbitmq_codegen | ||
,'.erlang.mk' | ||
,'ci.erlang.mk' | ||
,'.settings' | ||
,skel | ||
,parse_trans | ||
,meck | ||
], | ||
Preparer = fun (List) -> [{E,load} || E <- List, not lists:member(E, ToFilterOut)] end, | ||
Base = [runtime_tools | ||
,wx | ||
,observer | ||
,debugger | ||
,sasl | ||
], | ||
VSN = os:cmd("echo -n $(scripts/next_version 2>/dev/null)"), | ||
|
||
BASE = [{default_release, {kazoo, VSN}} | ||
,{release, {kazoo, VSN} | ||
,Base ++ Preparer(Apps ++ Core ++ Deps) | ||
}], | ||
|
||
APPS = [begin | ||
{ok, [{application, App, Settings}]} = file:consult(list_to_binary(["applications/", atom_to_list(App), "/ebin/", atom_to_list(App), ".app"])), | ||
AppDeps = proplists:get_value(applications, Settings, []), | ||
{release, {App, VSN}, Base ++ Preparer(AppDeps)} | ||
end | ||
|| App <- Apps, | ||
not lists:member(App, ToFilterOut) | ||
], | ||
|
||
CONFIG ++ BASE ++ APPS. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{lib_dirs, ["applications" | ||
,"core" | ||
,"deps" | ||
]}. | ||
|
||
{include_src, false}. | ||
{include_erts, false}. | ||
{dev_mode, true}. | ||
|
||
{generate_start_script, false}. | ||
{extended_start_script, false}. | ||
|
||
{sys_config, "rel/dev.sys.config"}. | ||
{vm_args, "rel/dev.vm.args"}. | ||
|
||
{overlay, [{copy, "../core/sup/priv/sup", "{{output_dir}}/bin/"} | ||
,{copy, "nodetool", "{{output_dir}}/bin/"} | ||
,{template, "kazoo", "{{output_dir}}/bin/kazoo"} | ||
]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
ToName = fun (App) -> list_to_atom(hd(string:tokens(App,"-"))) end, | ||
|
||
Apps = [list_to_atom(App) || "applications/"++App = Dir <- filelib:wildcard("applications/*"), filelib:is_dir(Dir)], | ||
Core = [list_to_atom(App) || "core/"++App = Dir <- filelib:wildcard( "core/*"), filelib:is_dir(Dir)], | ||
Deps = [list_to_atom(App) || "deps/"++App = Dir <- filelib:wildcard( "deps/*"), filelib:is_dir(Dir)], | ||
|
||
ToFilterOut = [rabbitmq_codegen | ||
,'.erlang.mk' | ||
,'ci.erlang.mk' | ||
,'.settings' | ||
,skel | ||
,parse_trans | ||
,meck | ||
,'kazoo_slack' | ||
,'exml' | ||
,'escalus' | ||
,'ananke' | ||
,'amqp_cron' | ||
,'amqp_leader' | ||
,'amqp_dist' | ||
], | ||
Preparer = fun (List) -> [{E,load} || E <- List, not lists:member(E, ToFilterOut)] end, | ||
Base = [runtime_tools | ||
,wx | ||
,observer | ||
,debugger | ||
,sasl | ||
], | ||
VSN = os:cmd("echo -n $(scripts/next_version 2>/dev/null)"), | ||
|
||
BASE = [{default_release, {kazoo, VSN}} | ||
,{release, {kazoo, VSN} | ||
,Base ++ Preparer(Apps ++ Core ++ Deps) | ||
}], | ||
|
||
APPS = [begin | ||
{ok, [{application, App, Settings}]} = file:consult(list_to_binary(["applications/", atom_to_list(App), "/ebin/", atom_to_list(App), ".app"])), | ||
AppDeps = proplists:get_value(applications, Settings, []), | ||
{release, {App, VSN}, Base ++ Preparer(AppDeps)} | ||
end | ||
|| App <- Apps, | ||
not lists:member(App, ToFilterOut) | ||
], | ||
|
||
CONFIG ++ BASE ++ APPS. | ||
|
Oops, something went wrong.