forked from basho/riak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
181 lines (162 loc) · 5.58 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
{sub_dirs, ["rel", "apps/riak"]}.
{minimum_otp_vsn, "22.0"}.
{cover_enabled, true}.
{erl_opts, [warnings_as_errors]}.
{eunit_opts, [nowarn_export_all, verbose]}.
{deps, [
{lager_syslog, {git, "https://github.com/basho/lager_syslog.git", {tag, "3.1.1"}}},
{cluster_info, {git, "https://github.com/basho/cluster_info.git", {tag, "2.1.0"}}},
{riak_kv, {git, "https://github.com/basho/riak_kv.git", {tag, "riak_kv-3.0.16"}}},
{riak_auth_mods, {git, "https://github.com/basho/riak_auth_mods.git", {tag, "riak_kv-3.0.10"}}},
{riaknostic, {git, "https://github.com/basho/riaknostic.git", {tag, "riak_kv-3.0.10"}}},
% {yokozuna, {git, "https://github.com/basho/yokozuna.git", {branch, "develop-3.0"}}},
{riak_repl, {git, "https://github.com/basho/riak_repl.git", {tag, "riak_kv-3.0.16"}}}
]}.
{project_plugins, [
{rebar3_cuttlefish, {git, "https://github.com/basho/rebar3_cuttlefish", {tag, "0.2.1"}}}
]}.
{cuttlefish, [
{file_name, "riak.conf"},
{disable_bin_scripts, true},
{schema_discovery, true},
{schema_order, [
riak,
erlang_vm,
riak_core,
riak_api,
riak_kv,
riak_sysmon,
bitcask,
bitcask_multi,
eleveldb,
eleveldb_multi,
leveled,
leveled_multi,
multi_backend,
riak_repl
]}
]}.
{relx, [{release, {riak, "3.0.16"},
[kernel,
stdlib,
lager,
lager_syslog,
sasl,
public_key,
ssl,
exometer_core,
riak_sysmon,
os_mon,
crypto,
observer,
runtime_tools,
xmerl,
mochiweb,
webmachine,
basho_stats,
bitcask,
clique,
riak_core,
riak_pipe,
riak_kv,
riak_api,
riak_repl,
cluster_info,
% yokozuna,
riaknostic,
riak_auth_mods]},
{dev_mode, false},
{include_erts, true},
{overlay, [
{mkdir, "lib/patches"},
{mkdir, "data/ring"},
{template, "rel/files/advanced.config", "etc/advanced.config"},
%% Copy additional bin scripts
{template, "rel/files/riak-admin", "bin/riak-admin"},
{template, "rel/files/riak-debug", "bin/riak-debug"},
{template, "rel/files/riak-chkconfig", "bin/riak-chkconfig"},
{template, "rel/files/riak-repl", "bin/riak-repl"},
{template, "rel/files/riak", "usr/bin/riak"},
{copy, "rel/files/check_ulimit", "bin/hooks/check_ulimit"},
{copy, "rel/files/erl_maxlogsize", "bin/hooks/erl_maxlogsize"},
{copy, "rel/files/erl_codeloadingmode","bin/hooks/erl_codeloadingmode"},
{copy, "rel/files/riak_not_running", "bin/hooks/riak_not_running"},
{copy, "rel/files/app_epath.sh", "lib/app_epath.sh"}
]},
{generate_start_script, true},
{extended_start_script, true},
{extended_start_script_extensions, [
{admin, "riak-admin"},
{repl, "riak-repl"},
{chkconfig, "riak-chkconfig"}
]}
]}.
{dialyzer, [{plt_apps, all_deps}]}.
{profiles, [
{rel, [
{relx, [
{overlay_vars, "rel/vars.config"},
{extended_start_script_hooks,
[{pre_start,
[{custom, "hooks/riak_not_running"},
{custom, "hooks/check_ulimit"},
{custom, "hooks/erl_maxlogsize"},
{custom, "hooks/erl_codeloadingmode"}]},
{post_start,
[{wait_for_process, riak_core_node_watcher}]}
]}
]}
]},
{dev, [{relx, [
{dev_mode, true},
{extended_start_script_hooks,
[{pre_start,
[{custom, "hooks/riak_not_running"},
{custom, "hooks/check_ulimit"},
{custom, "hooks/erl_maxlogsize"},
{custom, "hooks/erl_codeloadingmode"}]},
{post_start,
[{wait_for_process, riak_core_node_watcher}]}
]}
]}
]},
{rpm, [
{relx, [
{overlay_vars, "rel/pkg/rpm/vars.config"},
{overlay, [
{template, "rel/files/riak", "usr/sbin/riak"},
{template, "rel/pkg/rpm/init.script", "etc/init.d/init.script"}
]},
{extended_start_script_hooks,
[{pre_start,
[{custom, "hooks/riak_not_running"},
{custom, "hooks/check_ulimit"},
{custom, "hooks/erl_maxlogsize"},
{custom, "hooks/erl_codeloadingmode"}]},
{post_start,
[{pid, "/var/run/riak/riak.pid"},
{wait_for_process, riak_core_node_watcher}]}
]}
]}
]},
{deb, [
{relx, [
{overlay_vars, "debian/vars.config"},
{overlay, [
{template, "rel/files/riak", "usr/bin/riak"}
]},
{extended_start_script_hooks,
[{pre_start,
[{custom, "hooks/riak_not_running"},
{custom, "hooks/check_ulimit"},
{custom, "hooks/erl_maxlogsize"},
{custom, "hooks/erl_codeloadingmode"}]},
{post_start,
[wait_for_vm_start,
{pid, "/run/riak/riak.pid"},
{wait_for_process, riak_core_node_watcher}]}
]}
]}
]}
]}.