-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
104 lines (97 loc) · 2.78 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
%% -*- erlang -*-
{minimum_otp_vsn, "22.0"}.
{erl_opts, [ debug_info
, warnings_as_errors
, {parse_transform, lager_transform}
]
}.
{project_plugins, [ {rebar3_cuttlefish, {git, "https://github.com/TI-Tokyo/rebar3_cuttlefish", {tag, "2.1.1"}}}
]
}.
{deps, [ {webmachine, ".*", {git, "git://github.com/webmachine/webmachine.git", {tag, "1.11.1"}}}
, {mochiweb, "v2.20.1"}
, {riakc, ".*", {git, "git://github.com/basho/riak-erlang-client", {tag, "3.0.7"}}}
, {exometer_core, ".*", {git, "git://github.com/Feuerlabs/exometer_core", {tag, "v1.5.7"}}}
, {eper, ".*", {git, "git://github.com/basho/eper.git", "0.97.6p1"}}
, {lager_syslog, {git, "git://github.com/basho/lager_syslog.git", {tag, "3.1.0"}}}
, {rcs_common, {git, "git://github.com/TI-Tokyo/rcs_common.git", {tag, "3.0.2"}}}
]}.
{relx, [ {release, {stanchion, "3.0"},
[ sasl
, stanchion
]
}
, {dev_mode, false}
, {overlay, [ {template, "rel/files/advanced.config", "etc/advanced.config"}
, {copy, "rel/files/cert.pem", "etc/cert.pem"}
, {copy, "rel/files/key.pem", "etc/key.pem"}
, {template, "rel/files/stanchion", "usr/bin/stanchion"}
, {template, "rel/files/stanchion-admin", "bin/stanchion-admin"}
, {template, "rel/files/stanchion-debug", "bin/stanchion-debug"}
, {copy, "rel/files/app_epath.sh", "lib/app_epath.sh"}
, {mkdir, "log"}
]
}
, {generate_start_script, true}
, {extended_start_script, true}
]
}.
{profiles, [ {rel, [ {relx, [ {overlay_vars, "rel/vars.config"}
, {mode, prod}
]
}
]
}
, {dev, [ {relx, [ {mode, dev}
, {dev_mode, true}
]
}
]
}
, {rpm, [ {relx, [ {overlay_vars, "rel/pkg/rpm/vars.config"}
, {mode, prod}
]
}
]
}
, {deb, [ {relx, [ {overlay_vars, "rel/pkg/deb/vars.config"}
, {mode, prod}
]
}
]
}
, {fbsdng, [ {relx, [ {overlay_vars, "rel/pkg/fbsdng/vars.config"}
, {mode, prod}
, {extended_start_script_hooks,
[ {post_start,
%% relx won't write this pid
%% (we do it in lancher script
%% instead, because of
%% that). Let's leave it here
%% in hope one day relx will
[ wait_for_vm_start
, {pid, "/run/stanchion/stanchion.pid"}
, {wait_for_process, stanchion_server_sup}
]
}
]
}
]
}
]
}
]
}.
{cuttlefish, [ {file_name, "stanchion.conf"}
, {disable_bin_scripts, true}
, {schema_discovery, true}
, {schema_order, [ stanchion
, erlang_vm
]}
]
}.
{overrides,
[ {del, eper, [{erl_opts, [warnings_as_errors]}]}
, {del, setup, [{erl_opts, [warnings_as_errors]}]}
]
}.