aboutsummaryrefslogtreecommitdiff
path: root/rebar.config
blob: 99d2e268dc2990c1aa18f4ba9f26e5b856157bd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{erl_opts, [debug_info]}.

{deps, [
  logger_colorful,
  {opentelemetry_api, "~> 1.0"},
  {opentelemetry, "~> 1.0"},
  {opentelemetry_exporter, "1.0.2"},
  {opentelemetry_process_propagator, "0.1.1"},
  {opentelemetry_logger_metadata, "0.1.0"},
  {opentelemetry_telemetry, "~> 1.0.0-beta.7"},
  {telemetry, "~> 1.0"},
  {prometheus, "~> 4.8.2"},

  {circuit_breaker, {git, "https://github.com/klarna/circuit_breaker", {branch, "master"}}},
  {sbroker, "1.0.0"},
  {genlib, {git, "https://github.com/rbkmoney/genlib", {branch, "master"}}},
  {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"}
			]}
		]}
	]}
]}.