Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor file layout to build releases with plugins, config, etc
- Loading branch information
Showing
17 changed files
with
58 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
deps | ||
tags | ||
ebin | ||
apps/rolf/priv/data | ||
data | ||
.eunit | ||
logs | ||
TEST-*.xml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,26 @@ | ||
#!/bin/bash | ||
now=`date +%s` | ||
start=`expr $now - 3600` | ||
rrdtool graph rolf_loadtime.png -s $start -S 10 -w 800 -h 600 -l 0 -u 1.5 \ | ||
rrdtool graph rolf_loadtime.png -s $start -S 10 -w 800 -h 600 -l 0 -u 1000 -r \ | ||
-c BACK#191919 -c CANVAS#191919 -c SHADEA#191919 -c SHADEB#191919 -c FONT#ffffff \ | ||
'DEF:loadtime=priv/data/rolf@josie/loadtime.rrd:loadtime:AVERAGE' \ | ||
'AREA:loadtime#0091ff:loadtime' | ||
rrdtool graph rolf_freespace.png -s $start -S 300 -w 800 -h 600 -l 0 -u 100 \ | ||
-c BACK#191919 -c CANVAS#191919 -c SHADEA#191919 -c SHADEB#191919 -c FONT#ffffff \ | ||
'DEF:freespace=priv/data/rolf@josie/disk.rrd:freespace:AVERAGE' \ | ||
'AREA:freespace#0091ff:freespace' | ||
rrdtool graph rolf2_loadtime.png -s $start -S 10 -w 800 -h 600 -l 0 -u 1.5 \ | ||
-c BACK#191919 -c CANVAS#191919 -c SHADEA#191919 -c SHADEB#191919 -c FONT#ffffff \ | ||
'DEF:loadtime=priv/data/rolf2@josie/loadtime.rrd:loadtime:AVERAGE' \ | ||
'AREA:loadtime#0091ff:loadtime' | ||
open rolf_freespace.png rolf_loadtime.png rolf2_loadtime.png | ||
'DEF:bbc=data/rolf@127.0.0.1/loadtime.rrd:bbc:AVERAGE' \ | ||
'DEF:guardian=data/rolf@127.0.0.1/loadtime.rrd:guardian:AVERAGE' \ | ||
'DEF:lastminute=data/rolf@127.0.0.1/loadtime.rrd:lastminute:AVERAGE' \ | ||
'DEF:aws=data/rolf@127.0.0.1/loadtime.rrd:aws:AVERAGE' \ | ||
'DEF:appengine=data/rolf@127.0.0.1/loadtime.rrd:appengine:AVERAGE' \ | ||
'DEF:twitter=data/rolf@127.0.0.1/loadtime.rrd:twitter:AVERAGE' \ | ||
'DEF:argos=data/rolf@127.0.0.1/loadtime.rrd:argos:AVERAGE' \ | ||
'DEF:aarouteplanner=data/rolf@127.0.0.1/loadtime.rrd:aarouteplanner:AVERAGE' \ | ||
'DEF:ocado=data/rolf@127.0.0.1/loadtime.rrd:ocado:AVERAGE' \ | ||
'DEF:dailymail=data/rolf@127.0.0.1/loadtime.rrd:dailymail:AVERAGE' \ | ||
'LINE:bbc#0091ff' \ | ||
'LINE:guardian#91ff00' \ | ||
'LINE:lastminute#9100ff' \ | ||
'LINE:aws#91ff00' \ | ||
'LINE:appengine#ff0091' \ | ||
'LINE:twitter#ff9100' \ | ||
'LINE:argos#00ff91' \ | ||
'LINE:aarouteplanner#cc0066' \ | ||
'LINE:ocado#0066cc' \ | ||
'LINE:dailymail#66cc00' | ||
open rolf_loadtime.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../rel/files/recorder.config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rel/files/plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
[ | ||
%% SASL config | ||
{sasl, [ | ||
{sasl_error_logger, {file, "log/sasl-error.log"}}, | ||
{sasl, [{sasl_error_logger, {file, "log/sasl-error.log"}}, | ||
{errlog_type, error}, | ||
{error_logger_mf_dir, "log/sasl"}, % Log directory | ||
{error_logger_mf_maxbytes, 10485760}, % 10 MB max file size | ||
{error_logger_mf_maxfiles, 5} % 5 files max | ||
]} | ||
{error_logger_mf_maxfiles, 5}]} % 5 files max | ||
]. | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,20 @@ | ||
{sys, [ | ||
{lib_dirs, []}, | ||
{rel, "rolf", "1", | ||
[ | ||
kernel, | ||
stdlib, | ||
sasl | ||
]}, | ||
{rel, "start_clean", "", | ||
[ | ||
kernel, | ||
stdlib | ||
]}, | ||
%% vim: ft=erlang | ||
{sys, [{lib_dirs, []}, | ||
{rel, "rolf", "1", [kernel, stdlib, sasl]}, | ||
{rel, "start_clean", "", [kernel, stdlib]}, | ||
{boot_rel, "rolf"}, | ||
{profile, embedded}, | ||
{excl_sys_filters, ["^bin/.*", | ||
"^erts.*/bin/(dialyzer|typer)"]}, | ||
{app, sasl, [{incl_cond, include}]} | ||
]}. | ||
{excl_sys_filters, ["^bin/.*", "^erts.*/bin/(dialyzer|typer)"]}, | ||
{app, sasl, [{incl_cond, include}]}]}. | ||
|
||
{target_dir, "rolf"}. | ||
|
||
{overlay, [ | ||
{mkdir, "log/sasl"}, | ||
{overlay, [{mkdir, "log/sasl"}, | ||
{mkdir, "data"}, | ||
{copy, "files/erl", "{{erts_vsn}}/bin/erl"}, | ||
{copy, "files/nodetool", "{{erts_vsn}}/bin/nodetool"}, | ||
{copy, "files/rolf", "bin/rolf"}, | ||
{copy, "files/app.config", "etc/app.config"}, | ||
{copy, "files/vm.args", "etc/vm.args"} | ||
]}. | ||
{copy, "files/vm.args", "etc/vm.args"}, | ||
{copy, "files/recorder.config", "etc/recorder.config"}, | ||
{copy, "files/plugins", "plugins"}]}. |