feat: set emqx in umbrella depend runtime false

This commit is contained in:
x1001100011 2021-07-18 18:48:10 -07:00
parent 9fc635826c
commit ef4c30b2fd
15 changed files with 23 additions and 24 deletions

View File

@ -19,7 +19,7 @@ defmodule EMQX.MixProject do
def application do
[
mod: {:emqx_app, []},
extra_applications: [:logger]
extra_applications: [:logger, :os_mon, :syntax_tools]
]
end
@ -29,7 +29,7 @@ defmodule EMQX.MixProject do
{:recon, "~> 2.5"},
{:cowboy, github: "emqx/cowboy", tag: "2.8.2"},
{:esockd, github: "emqx/esockd", tag: "5.8.0"},
{:ekka, github: "emqx/ekka", tag: "0.9.0"},
{:ekka, github: "emqx/ekka", tag: "0.9.0", runtime: false},
{:gen_rpc, github: "emqx/gen_rpc", tag: "2.5.1"},
{:cuttlefish, github: "emqx/cuttlefish", tag: "v4.0.1"},
{:hocon, github: "emqx/hocon"},

View File

@ -46,9 +46,9 @@ start(_Type, _Args) ->
ok = ekka_rlog:wait_for_shards(?EMQX_SHARDS, infinity),
{ok, Sup} = emqx_sup:start_link(),
ok = start_autocluster(),
ok = emqx_plugins:init(),
_ = emqx_plugins:load(),
_ = start_ce_modules(),
%% ok = emqx_plugins:init(),
%% _ = emqx_plugins:load(),
%% _ = start_ce_modules(),
emqx_boot:is_enabled(listeners) andalso (ok = emqx_listeners:start()),
register(emqx, self()),
ok = emqx_alarm_handler:load(),

View File

@ -25,7 +25,7 @@ defmodule EMQXAuthentication.MixProject do
defp deps do
[
{:emqx, in_umbrella: true},
{:emqx, in_umbrella: true, runtime: false},
{:jose, "~> 1.11"}
]
end

View File

@ -25,7 +25,7 @@ defmodule EMQXBridgeMqtt.MixProject do
defp deps do
[
{:emqx, in_umbrella: true, override: true},
{:emqx, in_umbrella: true, override: true, runtime: false},
{:emqx_rule_engine, in_umbrella: true},
{:emqtt, github: "emqx/emqtt", tag: "v1.2.3"}
]

View File

@ -25,7 +25,7 @@ defmodule EMQXCoap.MixProject do
defp deps do
[
{:emqx, in_umbrella: true},
{:emqx, in_umbrella: true, runtime: false},
{:gen_coap, github: "emqx/gen_coap", tag: "v0.3.2"}
]
end

View File

@ -26,7 +26,7 @@ defmodule EMQXDashboard.MixProject do
defp deps do
[
{:emqx, in_umbrella: true},
{:emqx, in_umbrella: true, runtime: false},
{:minirest, github: "emqx/minirest", tag: "0.3.5"}
]
end

View File

@ -25,7 +25,7 @@ defmodule EMQXLwm2m.MixProject do
defp deps do
[
{:emqx, in_umbrella: true},
{:emqx, in_umbrella: true, runtime: false},
{:lwm2m_coap, github: "emqx/lwm2m-coap", tag: "v1.1.2"}
]
end

View File

@ -20,14 +20,14 @@ defmodule EMQXManagement.MixProject do
[
registered: [:emqx_management_sup],
mod: {:emqx_mgmt_app, []},
extra_applications: [:logger]
extra_applications: [:logger, :syntax_tools]
]
end
defp deps do
[
{:emqx, in_umbrella: true},
{:emqx_rule_engine, in_umbrella: true},
{:ekka, github: "emqx/ekka", tag: "0.9.0"},
{:minirest, github: "emqx/minirest", tag: "0.3.5"}
]
end

View File

@ -26,7 +26,7 @@ defmodule EMQXPskFile.MixProject do
defp deps do
[
{:emqx, in_umbrella: true}
{:emqx, in_umbrella: true, runtime: false}
]
end
end

View File

@ -30,6 +30,7 @@ defmodule EmqxReleaseHelper do
}
end
|> Map.merge(%{
erts_vsn: :version |> :erlang.system_info() |> to_string(),
project_path: EMQXUmbrella.MixProject.project_path(),
enable_bcrypt: EMQXUmbrella.MixProject.enable_bcrypt(),
enable_plugin_emqx_modules: false,
@ -69,7 +70,7 @@ defmodule EmqxReleaseHelper do
platform_lib_dir: "lib",
platform_log_dir: "log",
platform_plugins_dir: "etc/plugins",
runner_root_dir: EMQXUmbrella.MixProject.project_path(),
runner_root_dir: "$(cd $(dirname $(readlink $0 || echo $0))/..; pwd -P)",
runner_bin_dir: "$RUNNER_ROOT_DIR/bin",
runner_etc_dir: "$RUNNER_ROOT_DIR/etc",
runner_lib_dir: "$RUNNER_ROOT_DIR/lib",

View File

@ -18,7 +18,7 @@ defmodule EMQXResource.MixProject do
def application do
[
mod: {:emqx_resource_app, []},
extra_applications: [:logger]
extra_applications: [:logger, :syntax_tools]
]
end

View File

@ -25,6 +25,8 @@ defmodule EMQXRetainer.MixProject do
end
defp deps do
[{:emqx, in_umbrella: true}]
[
{:emqx, in_umbrella: true, runtime: false}
]
end
end

View File

@ -20,13 +20,13 @@ defmodule EMQXRuleEngine.MixProject do
[
registered: [:emqx_rule_engine_sup, :emqx_rule_registry],
mod: {:emqx_rule_engine_app, []},
extra_applications: [:logger]
extra_applications: [:logger, :syntax_tools]
]
end
defp deps do
[
{:emqx, in_umbrella: true},
{:emqx, in_umbrella: true, runtime: false},
{:ekka, github: "emqx/ekka", tag: "0.9.0"}
]
end

View File

@ -26,7 +26,7 @@ defmodule EMQXStomp.MixProject do
defp deps do
[
{:emqx, in_umbrella: true}
{:emqx, in_umbrella: true, runtime: false}
]
end
end

View File

@ -1,9 +1,5 @@
import Config
# import MyApplication.Hocon
# config :my_app, :key, :value
File.cwd! |> IO.inspect
# hocon :emqx,
# schema: :emqx_schema,
# config_file: "etc/emqx.conf"
config :mnesia, dir: '/tmp/mnesia'