diff options
author | Jordan Bracco <href@random.sh> | 2022-04-07 23:54:23 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-04-07 23:54:23 +0000 |
commit | 6d7887c51ba7664688bc568aa0c8538da0e64e7b (patch) | |
tree | 452ded9651d17bdd3fe941f15dfec2325f008db9 /rebar.config |
guess it was time for an initial commit
Diffstat (limited to 'rebar.config')
-rw-r--r-- | rebar.config | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/rebar.config b/rebar.config new file mode 100644 index 0000000..05d8e4c --- /dev/null +++ b/rebar.config @@ -0,0 +1,84 @@ +{erl_opts, [debug_info]}. + +{deps, [ + logger_colorful, + {opentelemetry_api, "~> 1.0"}, + {opentelemetry, "~> 1.0"}, + {opentelemetry_exporter, "1.0.2"}, + {uuid, "2.0.4", {pkg, uuid_erl}}, + {ory, {git, "https://git.random.sh/erlang-ory.git", {branch, "main"}}}, + {mnesia_rocksdb, {git, "https://github.com/aeternity/mnesia_rocksdb", {branch, "master"}}}, + {ra, "2.0.6"}, + {lager, {git, "https://github.com/erlang-lager/lager", {branch, "master"}}}, + {partisan, {git, "http://github.com/aramallo/partisan.git", {branch, "master"}}}, + {plum_db, {git, "https://gitlab.com/leapsight/plum_db", {branch, "master"}}}, + {khepri, {git, "https://github.com/rabbitmq/khepri", {branch, "main"}}}, + {dns_erlang, {git, "https://github.com/dnsimple/dns_erlang", {branch, "main"}}}, + {erldns, {git, "https://github.com/dnsimple/erldns", {branch, "main"}}}, + {yamerl, "0.10.0"}, + {jsone, "1.6.1"}, + {jsx, "3.1.0"}, + {jesse, {git, "https://github.com/for-GET/jesse", {branch, "master"}}}, + {fast_yaml, {git, "https://github.com/processone/fast_yaml", {branch, "master"}}}, +%% {jsonnet, {git, "https://github.com/ray2501/erlang-jsonnet", {branch, "master"}}}, + datalog +]}. + +{plugins, [ + rebar3_run, + rebar3_depup, + rebar3_lint +]}. + +%%{elvis_output_format, plain | colors | parsable}. +{elvis_output_format, parsable}. +{elvis, [ + #{ dirs => ["apps/*/src/**", "src/**"], + filter => "*.erl", + ruleset => erl_files }, + #{ dirs => ["."], + filter => "rebar.config", + ruleset => rebar_config } + %%#{ dirs => ["."], + %% filter => "elvis.config", + %% ruleset => elvis_config } +]}. + +{relx, [{release, {dreki, "0.1.0"}, + [opentelemetry_exporter, {opentelemetry, temporary}, + dreki, + sasl]}, + {mode, dev}, + {sys_config, "./config/sys.config"}, + {vm_args, "./config/vm.args"}, + %% the .src form of the configuration files do + %% not require setting RELX_REPLACE_OS_VARS + %% {sys_config_src, "./config/sys.config.src"}, + %% {vm_args_src, "./config/vm.args.src"} + {extended_start_script, true} +]}. + +{project_app_dirs, ["apps/*"]}. + +{profiles, [ + {prod, [{relx, + [%% prod is the default mode when prod + %% profile is used, so does not have + %% to be explicitly included like this + {mode, prod} + + %% use minimal mode to exclude ERTS + %% {mode, minimal} + ]} + ]}, + + {mgmt2, [ + {relx, [ + {sys_config, "./config/mgmt2/sys.config"}, + {vm_args, "./config/mgmt2/vm.args"}, + {overlay, [ + {mkdir, "./data"} + ]} + ]} + ]} +]}. |