-
Notifications
You must be signed in to change notification settings - Fork 16
/
reltool.config
75 lines (66 loc) · 2.35 KB
/
reltool.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
%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ft=erlang ts=4 sw=4 et
{sys, [
{lib_dirs, ["../deps", "../apps"]},
{rel, "stanchion", "2.1.0",
[
kernel,
stdlib,
sasl,
public_key,
ssl,
os_mon,
crypto,
runtime_tools,
mochiweb,
webmachine,
lager,
lager_syslog,
exometer_core,
stanchion
]},
{rel, "start_clean", "",
[
kernel,
stdlib
]},
{boot_rel, "stanchion"},
{profile, embedded},
{excl_sys_filters, ["^bin/.*",
"^erts.*/bin/(dialyzer|typer)"]},
{excl_archive_filters, [".*"]},
{app, sasl, [{incl_cond, include}]},
{app, cuttlefish, [{incl_cond, include}]},
{app, lager, [{incl_cond, include}]},
{app, stanchion, [{incl_cond, include}]}
]}.
{target_dir, "stanchion"}.
{overlay_vars, "vars.config"}.
{overlay, [
%% Scan for scripts in included apps
%% Setup basic dirs
{mkdir, "log"},
{mkdir, "data/stanchion"},
%% Copy base files for starting and interacting w/ node
{copy, "../deps/node_package/priv/base/erl",
"{{erts_vsn}}/bin/erl"},
{copy, "../deps/cuttlefish/cuttlefish",
"{{erts_vsn}}/bin/cuttlefish"},
{copy, "../deps/node_package/priv/base/nodetool",
"{{erts_vsn}}/bin/nodetool"},
{template, "../deps/node_package/priv/base/runner",
"bin/stanchion"},
{template, "../deps/node_package/priv/base/env.sh",
"lib/env.sh"},
%% Copy config files
%% Cuttlefish Schema Files have a priority order.
%% Anything in a file prefixed with 00- will override
%% anything in a file with a higher numbered prefix.
{template, "files/stanchion.schema", "lib/00-stanchion.schema"},
{template, "../deps/cuttlefish/priv/erlang_vm.schema", "lib/11-erlang_vm.schema"},
{template, "files/advanced.config", "etc/advanced.config"},
{template, "files/stanchion-admin", "bin/stanchion-admin"},
%% Copy ssl certs
{template, "files/cert.pem", "etc/cert.pem"},
{template, "files/key.pem", "etc/key.pem"}
]}.