Skip to content

Commit cbf4b53

Browse files
committed
WIP; Khepri metadata store - phase 1 (Bazel bits)
1 parent 5a70e4a commit cbf4b53

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

BUILD.khepri

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
load("@rules_erlang//:erlang_app.bzl", "erlang_app", "DEFAULT_ERLC_OPTS")
2+
3+
erlang_app(
4+
app_name = "khepri",
5+
app_description = "ZooKeeper-inspired database library",
6+
app_version = "main",
7+
app_module = "khepri_app",
8+
erlc_opts = ["-I", "external/khepri"] + DEFAULT_ERLC_OPTS,
9+
extra_apps = [
10+
"sasl",
11+
],
12+
deps = [
13+
"@ra//:erlang_app",
14+
],
15+
)

deps/rabbit/BUILD.bazel

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ _APP_ENV = """[
153153
DEPS = [
154154
"//deps/amqp10_common:erlang_app",
155155
"//deps/rabbit_common:erlang_app",
156+
"@khepri//:erlang_app",
156157
"@ra//:erlang_app",
157158
"@ranch//:erlang_app",
158159
"@stdout_formatter//:erlang_app",
@@ -513,6 +514,18 @@ suites = [
513514
":rabbit_ha_test_producer",
514515
],
515516
),
517+
rabbitmq_integration_suite(
518+
PACKAGE,
519+
name = "metadata_store_phase1_SUITE",
520+
size = "small",
521+
deps = [
522+
"@khepri//:erlang_app",
523+
],
524+
runtime_deps = [
525+
"@meck//:erlang_app",
526+
"@ra//:erlang_app",
527+
],
528+
),
516529
rabbitmq_integration_suite(
517530
PACKAGE,
518531
name = "message_size_limit_SUITE",

workspace_helpers.bzl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,14 @@ erlang_app(
143143
sha256 = "0c5cc8fdc11b53cc25cf65ac6705ad39e54ecc56d1c22e4adb8f5a53fb9427f3",
144144
)
145145

146+
github_erlang_app(
147+
name = "khepri",
148+
org = "rabbitmq",
149+
ref = "c587fabdab933e1e5f560ddd19bff7acfcecaa88",
150+
version = "c587fabdab933e1e5f560ddd19bff7acfcecaa88",
151+
build_file = rabbitmq_workspace + "//:BUILD.khepri",
152+
)
153+
146154
github_erlang_app(
147155
name = "meck",
148156
org = "eproxus",

0 commit comments

Comments
 (0)