Skip to content

Instantly share code, notes, and snippets.

@bradfordw
Created February 9, 2011 03:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bradfordw/817832 to your computer and use it in GitHub Desktop.
Save bradfordw/817832 to your computer and use it in GitHub Desktop.
How-to on setting up riak's rebar and reltool configs to use riak_csv
rebar.config--
{sub_dirs, ["rel"]}.
{require_otp_vsn, "R13B04|R14"}.
{cover_enabled, true}.
{erl_opts, [debug_info, fail_on_warning]}.
{deps, [
{cluster_info, "1.1.*", {git, "git://github.com/basho/cluster_info", {branch, "master"}}},
{riak_csv, "1.*", {git, "git://github.com/bradfordw/riak_csv.git", {branch, "master"}}},
{luwak, "1.*", {git, "git://github.com/basho/luwak", {branch, "master"}}},
{riak_kv, "0.14.*", {git, "git://github.com/basho/riak_kv", {branch, "master"}}},
{riak_err, "1.0.*", {git, "git://github.com/basho/riak_err", {branch, "master"}}}
]}.
--rebar.config
reltool.config--
%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 et
{sys, [
{lib_dirs, ["../deps"]},
{rel, "riak", "0.14.0",
[
kernel,
stdlib,
sasl,
riak_err,
os_mon,
crypto,
runtime_tools,
erlang_js,
mochiweb,
webmachine,
luke,
basho_stats,
bitcask,
riak_core,
riak_kv,
skerl,
luwak,
riak_csv,
cluster_info
]},
{rel, "start_clean", "",
[
kernel,
stdlib
]},
{boot_rel, "riak"},
{profile, embedded},
{excl_sys_filters, ["^bin/.*",
"^erts.*/bin/(dialyzer|typer)"]},
{excl_archive_filters, [".*"]},
{app, cluster_info, [{incl_cond, include}]},
{app, erlang_js, [{incl_cond, include}]},
{app, luke, [{incl_cond, include}]},
{app, ebloom, []},
{app, bitcask, [{incl_cond, include}]},
{app, riak_err, [{incl_cond, include}]},
{app, riak_core, [{incl_cond, include}]},
{app, riak_kv, [{incl_cond, include}]},
{app, skerl, [{incl_cond, include}]},
{app, luwak, [{incl_cond, include}]},
{app, eper, [{incl_cond, include}]},
{app, riak_csv, [{incl_cond, include}]},
{app, sasl, [{incl_cond, include}]}
]}.
{target_dir, "riak"}.
{overlay_vars, "vars.config"}.
{overlay, [
{mkdir, "data/ring"},
{mkdir, "log/sasl"},
{copy, "files/erl", "{{erts_vsn}}/bin/erl"},
{copy, "files/nodetool", "{{erts_vsn}}/bin/nodetool"},
{template, "files/app.config", "etc/app.config"},
{template, "files/vm.args", "etc/vm.args"},
{template, "files/riak", "bin/riak"},
{template, "files/riak-admin", "bin/riak-admin"}
]}.
--reltool.config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment