forked from helium/blockchain-etl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
130 lines (123 loc) · 4 KB
/
rebar.config
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
%% -*- erlang -*-
{erl_opts, [
debug_info,
{parse_transform, lager_transform}
%% warnings_as_errors
]}.
{plugins, [erlfmt]}.
{shell, [
{apps, [lager]}
]}.
{deps, [
lager,
recon,
jsone,
{hackney, "1.17.0"},
{base64url, "1.0.1"},
{epgsql, "4.3.0"},
{poolboy, "1.5.2"},
{observer_cli, "1.5.0"},
{telemetry, "0.4.1"},
{psql_migration, {git, "https://github.com/helium/psql-migration.git", {branch, "master"}}},
{clique, {git, "https://github.com/helium/clique.git", {branch, "develop"}}},
{blockchain,
{git, "https://github.com/helium/blockchain-core.git",
{ref, "validator1.8.3"}}},
{envloader, {git, "https://github.com/nuex/envloader.git", {branch, "master"}}}
]}.
{xref_checks, [
undefined_function_calls,
undefined_functions
]}.
{shell, [{apps, [lager, envloader, epgsql]}]}.
{relx, [
{release, {blockchain_etl, "0.1.0"}, [
blockchain_etl
]},
{vm_args, "./config/vm.args"},
{sys_config, "./config/dev.config"},
{extended_start_script, true},
{include_src, true},
{extended_start_script_hooks, [
{post_start, [
{wait_for_process, blockchain_worker}
]}
]},
{extended_start_script_extensions, [
{genesis, "extensions/genesis"},
{info, "extensions/info"},
{migrations, "extensions/migrations"},
{backfill, "extensions/backfill"},
{peer, "extensions/peer"},
{ledger, "extensions/ledger"},
{trace, "extensions/trace"},
{snapshot, "extensions/snapshot"},
{repair, "extensions/repair"},
{txn, "extensions/txn"}
]},
{overlay, [
{copy, "config/sys.config", "config/sys.config"},
{copy, "migrations/*.sql", "migrations/"},
{copy, "priv/genesis.mainnet", "update/genesis"},
{copy, "scripts/extensions/genesis", "bin/extensions/genesis"},
{copy, "scripts/extensions/info", "bin/extensions/info"},
{copy, "scripts/extensions/backfill", "bin/extensions/backfill"},
{copy, "scripts/extensions/migrations", "bin/extensions/migrations"},
{copy, "./_build/default/lib/blockchain/scripts/extensions/peer", "bin/extensions/peer"},
{copy, "./_build/default/lib/blockchain/scripts/extensions/ledger",
"bin/extensions/ledger"},
{copy, "./_build/default/lib/blockchain/scripts/extensions/trace", "bin/extensions/trace"},
{copy, "./_build/default/lib/blockchain/scripts/extensions/txn", "bin/extensions/txn"},
{copy, "./_build/default/lib/blockchain/scripts/extensions/snapshot",
"bin/extensions/snapshot"},
{copy, "./_build/default/lib/blockchain/scripts/extensions/repair",
"bin/extensions/repair"},
{template, "config/vm.args", "{{output_dir}}/releases/{{release_version}}/vm.args"}
]}
]}.
{profiles, [
{dev, [
{relx, [
{sys_config, "./config/dev.config"},
{dev_mode, true},
{include_src, false},
%% include erts to make migrations script work
{include_erts, true}
]}
]},
{testnet, [
{relx, [
{sys_config, "./config/testnet.config"},
{dev_mode, true},
{include_src, false},
%% include erts to make migrations script work
{include_erts, true},
{overlay, [
{copy, "priv/genesis.testnet", "update/genesis"}
]}
]}
]},
{prod, [
{relx, [
{sys_config, "./config/prod.config"},
{include_src, false},
{dev_mode, false},
{include_erts, true}
]}
]},
{docker_etl, [
{relx, [
{sys_config_src, "./config/docker_etl.config.src"},
{include_src, false},
{dev_mode, false},
{include_erts, true}
]}
]},
{local, [
{relx, [
{sys_config, "./config/local.config"},
{dev_mode, false},
{include_erts, false}
]}
]}
]}.