Skip to content

Commit 1611a0f

Browse files
committed
WIP; Khepri metadata store - phase 1 (Bazel bits)
1 parent 3476fc5 commit 1611a0f

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
@@ -152,6 +152,7 @@ _APP_ENV = """[
152152
DEPS = [
153153
"//deps/amqp10_common:erlang_app",
154154
"//deps/rabbit_common:erlang_app",
155+
"@khepri//:erlang_app",
155156
"@ra//:erlang_app",
156157
"@ranch//:erlang_app",
157158
"@stdout_formatter//:erlang_app",
@@ -499,6 +500,18 @@ suites = [
499500
":rabbit_ha_test_producer",
500501
],
501502
),
503+
rabbitmq_integration_suite(
504+
PACKAGE,
505+
name = "metadata_store_phase1_SUITE",
506+
size = "small",
507+
deps = [
508+
"@khepri//:erlang_app",
509+
],
510+
runtime_deps = [
511+
"@meck//:erlang_app",
512+
"@ra//:erlang_app",
513+
],
514+
),
502515
rabbitmq_integration_suite(
503516
PACKAGE,
504517
name = "message_size_limit_SUITE",

workspace_helpers.bzl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ erlang_app(
139139
sha256 = "0c5cc8fdc11b53cc25cf65ac6705ad39e54ecc56d1c22e4adb8f5a53fb9427f3",
140140
)
141141

142+
github_erlang_app(
143+
name = "khepri",
144+
org = "rabbitmq",
145+
ref = "4a90536f14fce7a72e5d0dc5a5348c2b348939d7",
146+
version = "4a90536f14fce7a72e5d0dc5a5348c2b348939d7",
147+
build_file = rabbitmq_workspace + "//:BUILD.khepri",
148+
)
149+
142150
github_erlang_app(
143151
name = "meck",
144152
org = "eproxus",

0 commit comments

Comments
 (0)