diff --git a/.bazelrc b/.bazelrc
index bb362d8d..bee46ef7 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -2,7 +2,11 @@ test --test_env=WORKSPACE_DIR
test --test_env=PATH
test --test_env=JAVA_HOME
-# Used by //pipeline:generate-openapi genrule which needs PATH/JAVA_HOME to find mvn.
-# Applied only when explicitly passed: bazel build --config=openapi //pipeline:generate-openapi
+# Needed for local Maven/npm genrules (pipeline_jars, generate-openapi)
+build --action_env=PATH
+build --action_env=JAVA_HOME
+build --action_env=HOME
+
+# Named config used by CI: bazel build --config=openapi //pipeline:generate-openapi
build:openapi --action_env=PATH
build:openapi --action_env=JAVA_HOME
diff --git a/BUILD.bazel b/BUILD.bazel
index e69de29b..1700926d 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -0,0 +1,6 @@
+load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
+
+sh_binary(
+ name = "docker-compose",
+ srcs = ["docker.sh"],
+)
diff --git a/MODULE.bazel b/MODULE.bazel
index 01afe8c2..e6338a23 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -1,2 +1,17 @@
bazel_dep(name = "rules_java", version = "9.9.0")
bazel_dep(name = "rules_shell", version = "0.6.1")
+bazel_dep(name = "rules_oci", version = "2.3.5")
+bazel_dep(name = "rules_pkg", version = "1.0.1")
+bazel_dep(name = "aspect_bazel_lib", version = "2.22.5")
+
+oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
+oci.pull(
+ name = "eclipse_temurin_jdk17",
+ image = "index.docker.io/library/eclipse-temurin",
+ tag = "17-jdk",
+ platforms = [
+ "linux/amd64",
+ "linux/arm64/v8",
+ ],
+)
+use_repo(oci, "eclipse_temurin_jdk17", "eclipse_temurin_jdk17_linux_amd64", "eclipse_temurin_jdk17_linux_arm64_v8")
diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock
index 19a2b272..420a28df 100644
--- a/MODULE.bazel.lock
+++ b/MODULE.bazel.lock
@@ -21,6 +21,12 @@
"https://bcr.bazel.build/modules/apple_support/1.24.2/MODULE.bazel": "0e62471818affb9f0b26f128831d5c40b074d32e6dda5a0d3852847215a41ca4",
"https://bcr.bazel.build/modules/apple_support/2.5.2/MODULE.bazel": "bb1b7081e390a8d3885f642cb0073dfcf8e7a36525e079fa8f5835af7079c0fe",
"https://bcr.bazel.build/modules/apple_support/2.5.2/source.json": "dd51ee925a550e92b55eb41c4c809a967da311a2d2520241252a238a48b39c4c",
+ "https://bcr.bazel.build/modules/aspect_bazel_lib/2.14.0/MODULE.bazel": "2b31ffcc9bdc8295b2167e07a757dbbc9ac8906e7028e5170a3708cecaac119f",
+ "https://bcr.bazel.build/modules/aspect_bazel_lib/2.19.3/MODULE.bazel": "253d739ba126f62a5767d832765b12b59e9f8d2bc88cc1572f4a73e46eb298ca",
+ "https://bcr.bazel.build/modules/aspect_bazel_lib/2.21.1/MODULE.bazel": "07e3ce3eaaa50dbd0be7fa0094e36890478937adc780ec53e77fd9fe543af8b1",
+ "https://bcr.bazel.build/modules/aspect_bazel_lib/2.22.5/MODULE.bazel": "004ba890363d05372a97248c37205ae64b6fa31047629cd2c0895a9d0c7779e8",
+ "https://bcr.bazel.build/modules/aspect_bazel_lib/2.22.5/source.json": "ac2c3213df8f985785f1d0aeb7f0f73d5324e6e67d593d9b9470fb74a25d4a9b",
+ "https://bcr.bazel.build/modules/aspect_bazel_lib/2.8.1/MODULE.bazel": "812d2dd42f65dca362152101fbec418029cc8fd34cbad1a2fde905383d705838",
"https://bcr.bazel.build/modules/bazel_features/1.1.1/MODULE.bazel": "27b8c79ef57efe08efccbd9dd6ef70d61b4798320b8d3c134fd571f78963dbcd",
"https://bcr.bazel.build/modules/bazel_features/1.10.0/MODULE.bazel": "f75e8807570484a99be90abcd52b5e1f390362c258bcb73106f4544957a48101",
"https://bcr.bazel.build/modules/bazel_features/1.11.0/MODULE.bazel": "f9382337dd5a474c3b7d334c2f83e50b6eaedc284253334cf823044a26de03e8",
@@ -35,11 +41,15 @@
"https://bcr.bazel.build/modules/bazel_features/1.3.0/MODULE.bazel": "cdcafe83ec318cda34e02948e81d790aab8df7a929cec6f6969f13a489ccecd9",
"https://bcr.bazel.build/modules/bazel_features/1.30.0/MODULE.bazel": "a14b62d05969a293b80257e72e597c2da7f717e1e69fa8b339703ed6731bec87",
"https://bcr.bazel.build/modules/bazel_features/1.33.0/MODULE.bazel": "8b8dc9d2a4c88609409c3191165bccec0e4cb044cd7a72ccbe826583303459f6",
+ "https://bcr.bazel.build/modules/bazel_features/1.34.0/MODULE.bazel": "e8475ad7c8965542e0c7aac8af68eb48c4af904be3d614b6aa6274c092c2ea1e",
"https://bcr.bazel.build/modules/bazel_features/1.36.0/MODULE.bazel": "596cb62090b039caf1cad1d52a8bc35cf188ca9a4e279a828005e7ee49a1bec3",
"https://bcr.bazel.build/modules/bazel_features/1.4.1/MODULE.bazel": "e45b6bb2350aff3e442ae1111c555e27eac1d915e77775f6fdc4b351b758b5d7",
"https://bcr.bazel.build/modules/bazel_features/1.42.1/MODULE.bazel": "275a59b5406ff18c01739860aa70ad7ccb3cfb474579411decca11c93b951080",
"https://bcr.bazel.build/modules/bazel_features/1.42.1/source.json": "fcd4396b2df85f64f2b3bb436ad870793ecf39180f1d796f913cc9276d355309",
+ "https://bcr.bazel.build/modules/bazel_features/1.9.0/MODULE.bazel": "885151d58d90d8d9c811eb75e3288c11f850e1d6b481a8c9f766adee4712358b",
"https://bcr.bazel.build/modules/bazel_features/1.9.1/MODULE.bazel": "8f679097876a9b609ad1f60249c49d68bfab783dd9be012faf9d82547b14815a",
+ "https://bcr.bazel.build/modules/bazel_lib/3.0.0/MODULE.bazel": "22b70b80ac89ad3f3772526cd9feee2fa412c2b01933fea7ed13238a448d370d",
+ "https://bcr.bazel.build/modules/bazel_lib/3.0.0/source.json": "895f21909c6fba01d7c17914bb6c8e135982275a1b18cdaa4e62272217ef1751",
"https://bcr.bazel.build/modules/bazel_skylib/1.0.3/MODULE.bazel": "bcb0fd896384802d1ad283b4e4eb4d718eebd8cb820b0a2c3a347fb971afd9d8",
"https://bcr.bazel.build/modules/bazel_skylib/1.1.1/MODULE.bazel": "1add3e7d93ff2e6998f9e118022c84d163917d912f5afafb3058e3d2f1545b5e",
"https://bcr.bazel.build/modules/bazel_skylib/1.2.0/MODULE.bazel": "44fe84260e454ed94ad326352a698422dbe372b21a1ac9f3eab76eb531223686",
@@ -56,6 +66,8 @@
"https://bcr.bazel.build/modules/bazel_skylib/1.8.2/source.json": "34a3c8bcf233b835eb74be9d628899bb32999d3e0eadef1947a0a562a2b16ffb",
"https://bcr.bazel.build/modules/buildozer/8.5.1/MODULE.bazel": "a35d9561b3fc5b18797c330793e99e3b834a473d5fbd3d7d7634aafc9bdb6f8f",
"https://bcr.bazel.build/modules/buildozer/8.5.1/source.json": "e3386e6ff4529f2442800dee47ad28d3e6487f36a1f75ae39ae56c70f0cd2fbd",
+ "https://bcr.bazel.build/modules/gawk/5.3.2.bcr.1/MODULE.bazel": "cdf8cbe5ee750db04b78878c9633cc76e80dcf4416cbe982ac3a9222f80713c8",
+ "https://bcr.bazel.build/modules/gawk/5.3.2.bcr.1/source.json": "fa7b512dfcb5eafd90ce3959cf42a2a6fe96144ebbb4b3b3928054895f2afac2",
"https://bcr.bazel.build/modules/google_benchmark/1.8.2/MODULE.bazel": "a70cf1bba851000ba93b58ae2f6d76490a9feb74192e57ab8e8ff13c34ec50cb",
"https://bcr.bazel.build/modules/googletest/1.11.0/MODULE.bazel": "3a83f095183f66345ca86aa13c58b59f9f94a2f81999c093d4eeaa2d262d12f4",
"https://bcr.bazel.build/modules/googletest/1.14.0.bcr.1/MODULE.bazel": "22c31a561553727960057361aa33bf20fb2e98584bc4fec007906e27053f80c6",
@@ -63,12 +75,17 @@
"https://bcr.bazel.build/modules/googletest/1.15.2/MODULE.bazel": "6de1edc1d26cafb0ea1a6ab3f4d4192d91a312fd2d360b63adaa213cd00b2108",
"https://bcr.bazel.build/modules/googletest/1.17.0/MODULE.bazel": "dbec758171594a705933a29fcf69293d2468c49ec1f2ebca65c36f504d72df46",
"https://bcr.bazel.build/modules/googletest/1.17.0/source.json": "38e4454b25fc30f15439c0378e57909ab1fd0a443158aa35aec685da727cd713",
+ "https://bcr.bazel.build/modules/jq.bzl/0.1.0/MODULE.bazel": "2ce69b1af49952cd4121a9c3055faa679e748ce774c7f1fda9657f936cae902f",
+ "https://bcr.bazel.build/modules/jq.bzl/0.1.0/source.json": "746bf13cac0860f091df5e4911d0c593971cd8796b5ad4e809b2f8e133eee3d5",
"https://bcr.bazel.build/modules/jsoncpp/1.9.5/MODULE.bazel": "31271aedc59e815656f5736f282bb7509a97c7ecb43e927ac1a37966e0578075",
"https://bcr.bazel.build/modules/jsoncpp/1.9.6/MODULE.bazel": "2f8d20d3b7d54143213c4dfc3d98225c42de7d666011528dc8fe91591e2e17b0",
"https://bcr.bazel.build/modules/jsoncpp/1.9.6/source.json": "a04756d367a2126c3541682864ecec52f92cdee80a35735a3cb249ce015ca000",
"https://bcr.bazel.build/modules/libpfm/4.11.0/MODULE.bazel": "45061ff025b301940f1e30d2c16bea596c25b176c8b6b3087e92615adbd52902",
"https://bcr.bazel.build/modules/nlohmann_json/3.6.1/MODULE.bazel": "6f7b417dcc794d9add9e556673ad25cb3ba835224290f4f848f8e2db1e1fca74",
"https://bcr.bazel.build/modules/nlohmann_json/3.6.1/source.json": "f448c6e8963fdfa7eb831457df83ad63d3d6355018f6574fb017e8169deb43a9",
+ "https://bcr.bazel.build/modules/package_metadata/0.0.2/MODULE.bazel": "fb8d25550742674d63d7b250063d4580ca530499f045d70748b1b142081ebb92",
+ "https://bcr.bazel.build/modules/package_metadata/0.0.6/MODULE.bazel": "341dab6f417197494517d54c8e557c0baee1de7aec83543a4fbefe57900acb7e",
+ "https://bcr.bazel.build/modules/package_metadata/0.0.6/source.json": "9581d8b22db43550ac75ecc314ee4fa0a33400bfdc77d1317d8af6b18dca7756",
"https://bcr.bazel.build/modules/platforms/0.0.10/MODULE.bazel": "8cb8efaf200bdeb2150d93e162c40f388529a25852b332cec879373771e48ed5",
"https://bcr.bazel.build/modules/platforms/0.0.11/MODULE.bazel": "0daefc49732e227caa8bfa834d65dc52e8cc18a2faf80df25e8caea151a9413f",
"https://bcr.bazel.build/modules/platforms/0.0.4/MODULE.bazel": "9b328e31ee156f53f3c416a64f8491f7eb731742655a47c9eec4703a71644aee",
@@ -127,10 +144,14 @@
"https://bcr.bazel.build/modules/rules_fuzzing/0.5.2/MODULE.bazel": "40c97d1144356f52905566c55811f13b299453a14ac7769dfba2ac38192337a8",
"https://bcr.bazel.build/modules/rules_java/4.0.0/MODULE.bazel": "5a78a7ae82cd1a33cef56dc578c7d2a46ed0dca12643ee45edbb8417899e6f74",
"https://bcr.bazel.build/modules/rules_java/5.3.5/MODULE.bazel": "a4ec4f2db570171e3e5eb753276ee4b389bae16b96207e9d3230895c99644b86",
+ "https://bcr.bazel.build/modules/rules_java/6.0.0/MODULE.bazel": "8a43b7df601a7ec1af61d79345c17b31ea1fedc6711fd4abfd013ea612978e39",
+ "https://bcr.bazel.build/modules/rules_java/6.3.0/MODULE.bazel": "a97c7678c19f236a956ad260d59c86e10a463badb7eb2eda787490f4c969b963",
+ "https://bcr.bazel.build/modules/rules_java/6.4.0/MODULE.bazel": "e986a9fe25aeaa84ac17ca093ef13a4637f6107375f64667a15999f77db6c8f6",
"https://bcr.bazel.build/modules/rules_java/6.5.2/MODULE.bazel": "1d440d262d0e08453fa0c4d8f699ba81609ed0e9a9a0f02cd10b3e7942e61e31",
"https://bcr.bazel.build/modules/rules_java/7.10.0/MODULE.bazel": "530c3beb3067e870561739f1144329a21c851ff771cd752a49e06e3dc9c2e71a",
"https://bcr.bazel.build/modules/rules_java/7.12.2/MODULE.bazel": "579c505165ee757a4280ef83cda0150eea193eed3bef50b1004ba88b99da6de6",
"https://bcr.bazel.build/modules/rules_java/7.2.0/MODULE.bazel": "06c0334c9be61e6cef2c8c84a7800cef502063269a5af25ceb100b192453d4ab",
+ "https://bcr.bazel.build/modules/rules_java/7.3.2/MODULE.bazel": "50dece891cfdf1741ea230d001aa9c14398062f2b7c066470accace78e412bc2",
"https://bcr.bazel.build/modules/rules_java/7.6.1/MODULE.bazel": "2f14b7e8a1aa2f67ae92bc69d1ec0fa8d9f827c4e17ff5e5f02e91caa3b2d0fe",
"https://bcr.bazel.build/modules/rules_java/8.3.2/MODULE.bazel": "7336d5511ad5af0b8615fdc7477535a2e4e723a357b6713af439fe8cf0195017",
"https://bcr.bazel.build/modules/rules_java/8.5.1/MODULE.bazel": "d8a9e38cc5228881f7055a6079f6f7821a073df3744d441978e7a43e20226939",
@@ -141,15 +162,20 @@
"https://bcr.bazel.build/modules/rules_jvm_external/4.4.2/MODULE.bazel": "a56b85e418c83eb1839819f0b515c431010160383306d13ec21959ac412d2fe7",
"https://bcr.bazel.build/modules/rules_jvm_external/5.1/MODULE.bazel": "33f6f999e03183f7d088c9be518a63467dfd0be94a11d0055fe2d210f89aa909",
"https://bcr.bazel.build/modules/rules_jvm_external/5.2/MODULE.bazel": "d9351ba35217ad0de03816ef3ed63f89d411349353077348a45348b096615036",
+ "https://bcr.bazel.build/modules/rules_jvm_external/5.3/MODULE.bazel": "bf93870767689637164657731849fb887ad086739bd5d360d90007a581d5527d",
+ "https://bcr.bazel.build/modules/rules_jvm_external/6.1/MODULE.bazel": "75b5fec090dbd46cf9b7d8ea08cf84a0472d92ba3585b476f44c326eda8059c4",
"https://bcr.bazel.build/modules/rules_jvm_external/6.3/MODULE.bazel": "c998e060b85f71e00de5ec552019347c8bca255062c990ac02d051bb80a38df0",
"https://bcr.bazel.build/modules/rules_jvm_external/6.7/MODULE.bazel": "e717beabc4d091ecb2c803c2d341b88590e9116b8bf7947915eeb33aab4f96dd",
"https://bcr.bazel.build/modules/rules_jvm_external/6.7/source.json": "5426f412d0a7fc6b611643376c7e4a82dec991491b9ce5cb1cfdd25fe2e92be4",
+ "https://bcr.bazel.build/modules/rules_kotlin/1.9.0/MODULE.bazel": "ef85697305025e5a61f395d4eaede272a5393cee479ace6686dba707de804d59",
"https://bcr.bazel.build/modules/rules_kotlin/1.9.6/MODULE.bazel": "d269a01a18ee74d0335450b10f62c9ed81f2321d7958a2934e44272fe82dcef3",
"https://bcr.bazel.build/modules/rules_kotlin/1.9.6/source.json": "2faa4794364282db7c06600b7e5e34867a564ae91bda7cae7c29c64e9466b7d5",
"https://bcr.bazel.build/modules/rules_license/0.0.3/MODULE.bazel": "627e9ab0247f7d1e05736b59dbb1b6871373de5ad31c3011880b4133cafd4bd0",
"https://bcr.bazel.build/modules/rules_license/0.0.7/MODULE.bazel": "088fbeb0b6a419005b89cf93fe62d9517c0a2b8bb56af3244af65ecfe37e7d5d",
"https://bcr.bazel.build/modules/rules_license/1.0.0/MODULE.bazel": "a7fda60eefdf3d8c827262ba499957e4df06f659330bbe6cdbdb975b768bb65c",
"https://bcr.bazel.build/modules/rules_license/1.0.0/source.json": "a52c89e54cc311196e478f8382df91c15f7a2bfdf4c6cd0e2675cc2ff0b56efb",
+ "https://bcr.bazel.build/modules/rules_oci/2.3.5/MODULE.bazel": "3aa52163d51d1c18aceb90cff6a2222dd1413a894138af57acc5a6ac6ddc5bbd",
+ "https://bcr.bazel.build/modules/rules_oci/2.3.5/source.json": "24e6bc9d7b335b8f3edf3410396424a675e7f9ef269ed90b72d0eef1fe5cfed1",
"https://bcr.bazel.build/modules/rules_pkg/0.7.0/MODULE.bazel": "df99f03fc7934a4737122518bb87e667e62d780b610910f0447665a7e2be62dc",
"https://bcr.bazel.build/modules/rules_pkg/1.0.1/MODULE.bazel": "5b1df97dbc29623bccdf2b0dcd0f5cb08e2f2c9050aab1092fd39a41e82686ff",
"https://bcr.bazel.build/modules/rules_pkg/1.0.1/source.json": "bd82e5d7b9ce2d31e380dd9f50c111d678c3bdaca190cb76b0e1c71b05e1ba8a",
@@ -174,6 +200,7 @@
"https://bcr.bazel.build/modules/rules_python/1.7.0/source.json": "028a084b65dcf8f4dc4f82f8778dbe65df133f234b316828a82e060d81bdce32",
"https://bcr.bazel.build/modules/rules_shell/0.2.0/MODULE.bazel": "fda8a652ab3c7d8fee214de05e7a9916d8b28082234e8d2c0094505c5268ed3c",
"https://bcr.bazel.build/modules/rules_shell/0.3.0/MODULE.bazel": "de4402cd12f4cc8fda2354fce179fdb068c0b9ca1ec2d2b17b3e21b24c1a937b",
+ "https://bcr.bazel.build/modules/rules_shell/0.4.1/MODULE.bazel": "00e501db01bbf4e3e1dd1595959092c2fadf2087b2852d3f553b5370f5633592",
"https://bcr.bazel.build/modules/rules_shell/0.6.1/MODULE.bazel": "72e76b0eea4e81611ef5452aa82b3da34caca0c8b7b5c0c9584338aa93bae26b",
"https://bcr.bazel.build/modules/rules_shell/0.6.1/source.json": "20ec05cd5e592055e214b2da8ccb283c7f2a421ea0dc2acbf1aa792e11c03d0c",
"https://bcr.bazel.build/modules/rules_swift/1.16.0/MODULE.bazel": "4a09f199545a60d09895e8281362b1ff3bb08bbde69c6fc87aff5b92fcc916ca",
@@ -183,13 +210,22 @@
"https://bcr.bazel.build/modules/rules_swift/3.1.2/source.json": "e85761f3098a6faf40b8187695e3de6d97944e98abd0d8ce579cb2daf6319a66",
"https://bcr.bazel.build/modules/stardoc/0.5.1/MODULE.bazel": "1a05d92974d0c122f5ccf09291442580317cdd859f07a8655f1db9a60374f9f8",
"https://bcr.bazel.build/modules/stardoc/0.5.3/MODULE.bazel": "c7f6948dae6999bf0db32c1858ae345f112cacf98f174c7a8bb707e41b974f1c",
+ "https://bcr.bazel.build/modules/stardoc/0.5.6/MODULE.bazel": "c43dabc564990eeab55e25ed61c07a1aadafe9ece96a4efabb3f8bf9063b71ef",
+ "https://bcr.bazel.build/modules/stardoc/0.6.2/MODULE.bazel": "7060193196395f5dd668eda046ccbeacebfd98efc77fed418dbe2b82ffaa39fd",
"https://bcr.bazel.build/modules/stardoc/0.7.0/MODULE.bazel": "05e3d6d30c099b6770e97da986c53bd31844d7f13d41412480ea265ac9e8079c",
+ "https://bcr.bazel.build/modules/stardoc/0.7.1/MODULE.bazel": "3548faea4ee5dda5580f9af150e79d0f6aea934fc60c1cc50f4efdd9420759e7",
"https://bcr.bazel.build/modules/stardoc/0.7.2/MODULE.bazel": "fc152419aa2ea0f51c29583fab1e8c99ddefd5b3778421845606ee628629e0e5",
"https://bcr.bazel.build/modules/stardoc/0.7.2/source.json": "58b029e5e901d6802967754adf0a9056747e8176f017cfe3607c0851f4d42216",
"https://bcr.bazel.build/modules/swift_argument_parser/1.3.1.1/MODULE.bazel": "5e463fbfba7b1701d957555ed45097d7f984211330106ccd1352c6e0af0dcf91",
"https://bcr.bazel.build/modules/swift_argument_parser/1.3.1.2/MODULE.bazel": "75aab2373a4bbe2a1260b9bf2a1ebbdbf872d3bd36f80bff058dccd82e89422f",
"https://bcr.bazel.build/modules/swift_argument_parser/1.3.1.2/source.json": "5fba48bbe0ba48761f9e9f75f92876cafb5d07c0ce059cc7a8027416de94a05b",
+ "https://bcr.bazel.build/modules/tar.bzl/0.2.1/MODULE.bazel": "52d1c00a80a8cc67acbd01649e83d8dd6a9dc426a6c0b754a04fe8c219c76468",
+ "https://bcr.bazel.build/modules/tar.bzl/0.5.1/MODULE.bazel": "7c2eb3dcfc53b0f3d6f9acdfd911ca803eaf92aadf54f8ca6e4c1f3aee288351",
+ "https://bcr.bazel.build/modules/tar.bzl/0.7.0/MODULE.bazel": "cc1acd85da33c80e430b65219a620d54d114628df24a618c3a5fa0b65e988da9",
+ "https://bcr.bazel.build/modules/tar.bzl/0.7.0/source.json": "9becb80306f42d4810bfa16379fb48aad0b01ce5342bc12fe47dcd6af3ac4d7a",
"https://bcr.bazel.build/modules/upb/0.0.0-20220923-a547704/MODULE.bazel": "7298990c00040a0e2f121f6c32544bab27d4452f80d9ce51349b1a28f3005c43",
+ "https://bcr.bazel.build/modules/yq.bzl/0.1.1/MODULE.bazel": "9039681f9bcb8958ee2c87ffc74bdafba9f4369096a2b5634b88abc0eaefa072",
+ "https://bcr.bazel.build/modules/yq.bzl/0.1.1/source.json": "2d2bad780a9f2b9195a4a370314d2c17ae95eaa745cefc2e12fbc49759b15aa3",
"https://bcr.bazel.build/modules/zlib/1.2.11/MODULE.bazel": "07b389abc85fdbca459b69e2ec656ae5622873af3f845e1c9d80fe179f3effa0",
"https://bcr.bazel.build/modules/zlib/1.3.1.bcr.5/MODULE.bazel": "eec517b5bbe5492629466e11dae908d043364302283de25581e3eb944326c4ca",
"https://bcr.bazel.build/modules/zlib/1.3.1.bcr.5/source.json": "22bc55c47af97246cfc093d0acf683a7869377de362b5d1c552c2c2e16b7a806",
@@ -254,6 +290,193 @@
}
}
},
+ "@@rules_oci+//oci:extensions.bzl%oci": {
+ "general": {
+ "bzlTransitiveDigest": "Mni7qtZ/3r0hALDrbirstNLl2HHG7fJuAStEp43ruJk=",
+ "usagesDigest": "hleATgAxMadhiw9kinxpUQjULDf3GuOseBNJCdNUJM8=",
+ "recordedInputs": [
+ "REPO_MAPPING:aspect_bazel_lib+,bazel_lib bazel_lib+",
+ "REPO_MAPPING:aspect_bazel_lib+,bazel_tools bazel_tools",
+ "REPO_MAPPING:bazel_features+,bazel_tools bazel_tools",
+ "REPO_MAPPING:bazel_lib+,bazel_skylib bazel_skylib+",
+ "REPO_MAPPING:bazel_lib+,bazel_tools bazel_tools",
+ "REPO_MAPPING:rules_oci+,aspect_bazel_lib aspect_bazel_lib+",
+ "REPO_MAPPING:rules_oci+,bazel_features bazel_features+",
+ "REPO_MAPPING:rules_oci+,bazel_skylib bazel_skylib+",
+ "REPO_MAPPING:rules_oci+,package_metadata package_metadata+",
+ "REPO_MAPPING:rules_oci+,platforms platforms",
+ "REPO_MAPPING:rules_oci+,tar.bzl tar.bzl+"
+ ],
+ "generatedRepoSpecs": {
+ "eclipse_temurin_jdk17_linux_amd64": {
+ "repoRuleId": "@@rules_oci+//oci/private:pull.bzl%oci_pull",
+ "attributes": {
+ "www_authenticate_challenges": {},
+ "scheme": "https",
+ "registry": "index.docker.io",
+ "repository": "library/eclipse-temurin",
+ "identifier": "17-jdk",
+ "platform": "linux/amd64",
+ "target_name": "eclipse_temurin_jdk17_linux_amd64",
+ "bazel_tags": []
+ }
+ },
+ "eclipse_temurin_jdk17_linux_arm64_v8": {
+ "repoRuleId": "@@rules_oci+//oci/private:pull.bzl%oci_pull",
+ "attributes": {
+ "www_authenticate_challenges": {},
+ "scheme": "https",
+ "registry": "index.docker.io",
+ "repository": "library/eclipse-temurin",
+ "identifier": "17-jdk",
+ "platform": "linux/arm64/v8",
+ "target_name": "eclipse_temurin_jdk17_linux_arm64_v8",
+ "bazel_tags": []
+ }
+ },
+ "eclipse_temurin_jdk17": {
+ "repoRuleId": "@@rules_oci+//oci/private:pull.bzl%oci_alias",
+ "attributes": {
+ "target_name": "eclipse_temurin_jdk17",
+ "www_authenticate_challenges": {},
+ "scheme": "https",
+ "registry": "index.docker.io",
+ "repository": "library/eclipse-temurin",
+ "identifier": "17-jdk",
+ "platforms": {
+ "@@platforms//cpu:x86_64": "@eclipse_temurin_jdk17_linux_amd64",
+ "@@platforms//cpu:arm64": "@eclipse_temurin_jdk17_linux_arm64_v8"
+ },
+ "bzlmod_repository": "eclipse_temurin_jdk17",
+ "reproducible": true
+ }
+ },
+ "oci_crane_darwin_amd64": {
+ "repoRuleId": "@@rules_oci+//oci:repositories.bzl%crane_repositories",
+ "attributes": {
+ "platform": "darwin_amd64",
+ "crane_version": "v0.18.0"
+ }
+ },
+ "oci_crane_darwin_arm64": {
+ "repoRuleId": "@@rules_oci+//oci:repositories.bzl%crane_repositories",
+ "attributes": {
+ "platform": "darwin_arm64",
+ "crane_version": "v0.18.0"
+ }
+ },
+ "oci_crane_linux_arm64": {
+ "repoRuleId": "@@rules_oci+//oci:repositories.bzl%crane_repositories",
+ "attributes": {
+ "platform": "linux_arm64",
+ "crane_version": "v0.18.0"
+ }
+ },
+ "oci_crane_linux_armv6": {
+ "repoRuleId": "@@rules_oci+//oci:repositories.bzl%crane_repositories",
+ "attributes": {
+ "platform": "linux_armv6",
+ "crane_version": "v0.18.0"
+ }
+ },
+ "oci_crane_linux_i386": {
+ "repoRuleId": "@@rules_oci+//oci:repositories.bzl%crane_repositories",
+ "attributes": {
+ "platform": "linux_i386",
+ "crane_version": "v0.18.0"
+ }
+ },
+ "oci_crane_linux_s390x": {
+ "repoRuleId": "@@rules_oci+//oci:repositories.bzl%crane_repositories",
+ "attributes": {
+ "platform": "linux_s390x",
+ "crane_version": "v0.18.0"
+ }
+ },
+ "oci_crane_linux_amd64": {
+ "repoRuleId": "@@rules_oci+//oci:repositories.bzl%crane_repositories",
+ "attributes": {
+ "platform": "linux_amd64",
+ "crane_version": "v0.18.0"
+ }
+ },
+ "oci_crane_windows_armv6": {
+ "repoRuleId": "@@rules_oci+//oci:repositories.bzl%crane_repositories",
+ "attributes": {
+ "platform": "windows_armv6",
+ "crane_version": "v0.18.0"
+ }
+ },
+ "oci_crane_windows_amd64": {
+ "repoRuleId": "@@rules_oci+//oci:repositories.bzl%crane_repositories",
+ "attributes": {
+ "platform": "windows_amd64",
+ "crane_version": "v0.18.0"
+ }
+ },
+ "oci_crane_toolchains": {
+ "repoRuleId": "@@rules_oci+//oci/private:toolchains_repo.bzl%toolchains_repo",
+ "attributes": {
+ "toolchain_type": "@rules_oci//oci:crane_toolchain_type",
+ "toolchain": "@oci_crane_{platform}//:crane_toolchain"
+ }
+ },
+ "oci_regctl_darwin_amd64": {
+ "repoRuleId": "@@rules_oci+//oci:repositories.bzl%regctl_repositories",
+ "attributes": {
+ "platform": "darwin_amd64"
+ }
+ },
+ "oci_regctl_darwin_arm64": {
+ "repoRuleId": "@@rules_oci+//oci:repositories.bzl%regctl_repositories",
+ "attributes": {
+ "platform": "darwin_arm64"
+ }
+ },
+ "oci_regctl_linux_arm64": {
+ "repoRuleId": "@@rules_oci+//oci:repositories.bzl%regctl_repositories",
+ "attributes": {
+ "platform": "linux_arm64"
+ }
+ },
+ "oci_regctl_linux_s390x": {
+ "repoRuleId": "@@rules_oci+//oci:repositories.bzl%regctl_repositories",
+ "attributes": {
+ "platform": "linux_s390x"
+ }
+ },
+ "oci_regctl_linux_amd64": {
+ "repoRuleId": "@@rules_oci+//oci:repositories.bzl%regctl_repositories",
+ "attributes": {
+ "platform": "linux_amd64"
+ }
+ },
+ "oci_regctl_windows_amd64": {
+ "repoRuleId": "@@rules_oci+//oci:repositories.bzl%regctl_repositories",
+ "attributes": {
+ "platform": "windows_amd64"
+ }
+ },
+ "oci_regctl_toolchains": {
+ "repoRuleId": "@@rules_oci+//oci/private:toolchains_repo.bzl%toolchains_repo",
+ "attributes": {
+ "toolchain_type": "@rules_oci//oci:regctl_toolchain_type",
+ "toolchain": "@oci_regctl_{platform}//:regctl_toolchain"
+ }
+ }
+ },
+ "moduleExtensionMetadata": {
+ "explicitRootModuleDirectDeps": [
+ "eclipse_temurin_jdk17",
+ "eclipse_temurin_jdk17_linux_amd64",
+ "eclipse_temurin_jdk17_linux_arm64_v8"
+ ],
+ "explicitRootModuleDirectDevDeps": [],
+ "useAllRepos": "NO",
+ "reproducible": false
+ }
+ }
+ },
"@@rules_python+//python/extensions:config.bzl%config": {
"general": {
"bzlTransitiveDigest": "L+2ZCpb7GIJqvWaXpzkfk/80d916sIFVmSPzrSm6of8=",
diff --git a/docker.sh b/docker.sh
new file mode 100755
index 00000000..7226a161
--- /dev/null
+++ b/docker.sh
@@ -0,0 +1,40 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd "$BUILD_WORKSPACE_DIRECTORY"
+
+case "${1:-}" in
+ up)
+ docker compose --env-file .env.local up -d
+ ;;
+ down)
+ docker compose down
+ ;;
+ fresh)
+ MONITORING_STACK_DIR="${MONITORING_STACK_DIR:-./monitoring}" \
+ docker compose \
+ -f docker-compose.yml \
+ -f monitoring/docker-compose-monitoring.yml \
+ -f monitoring/docker-compose-monitoring-integration.yml \
+ down -v
+ ;;
+ up-monitoring)
+ MONITORING_STACK_DIR="${MONITORING_STACK_DIR:-./monitoring}" \
+ docker compose --env-file .env.local \
+ -f docker-compose.yml \
+ -f monitoring/docker-compose-monitoring.yml \
+ -f monitoring/docker-compose-monitoring-integration.yml \
+ up -d
+ ;;
+ down-monitoring)
+ MONITORING_STACK_DIR="${MONITORING_STACK_DIR:-./monitoring}" \
+ docker compose \
+ -f docker-compose.yml \
+ -f monitoring/docker-compose-monitoring.yml \
+ -f monitoring/docker-compose-monitoring-integration.yml \
+ down
+ ;;
+ *)
+ echo "Usage: bazel run //:docker-compose -- {up|down|fresh|up-monitoring|down-monitoring}"
+ exit 1
+ ;;
+esac
diff --git a/pipeline/BUILD.bazel b/pipeline/BUILD.bazel
index 6dc576cf..2fbe4bdd 100644
--- a/pipeline/BUILD.bazel
+++ b/pipeline/BUILD.bazel
@@ -1,12 +1,15 @@
load("@rules_shell//shell:sh_test.bzl", "sh_test")
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
+load("@rules_pkg//pkg:mappings.bzl", "pkg_files", "strip_prefix")
+load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
+load("@rules_oci//oci:defs.bzl", "oci_image", "oci_load")
# Inputs Bazel tracks for cache invalidation — if none of these change,
# both targets below are skipped entirely (cache hit).
_SRCS = glob(
["src/**", "pom.xml", "checkstyle.xml", "maven-settings.xml"],
exclude = ["target/**"],
-) + ["//apis/protobuf:protobuf_files"]
+) + ["//apis/protobuf:protobuf_files", ".mvn/wrapper/maven-wrapper.properties"]
# TODO: Rename to run only unit tests (mvn test) once integration tests are separated
# (rename SecurityConfigTest.java -> SecurityConfigIT.java + add Failsafe plugin to pom.xml).
@@ -44,3 +47,52 @@ genrule(
local = True,
tags = ["manual"],
)
+
+# Builds the app and OTEL agent JARs via Maven.
+# Used as inputs to the OCI image build below.
+genrule(
+ name = "pipeline_jars",
+ srcs = _SRCS + ["mvnw"],
+ outs = ["app.jar", "otel-agent.jar"],
+ cmd = """
+ (cd pipeline && ./mvnw clean package -DskipTests -Pmonitoring --batch-mode -q -Dbuild.dir=target/bazel-jars)
+ cp pipeline/target/bazel-jars/pipeline-0.0.1-SNAPSHOT.jar $(RULEDIR)/app.jar
+ cp pipeline/target/bazel-jars/agents/opentelemetry-javaagent.jar $(RULEDIR)/otel-agent.jar
+ """,
+ local = True,
+ tags = ["manual"],
+)
+
+pkg_files(
+ name = "app_files",
+ srcs = [":app.jar", ":otel-agent.jar"],
+ strip_prefix = strip_prefix.from_pkg(),
+ prefix = "/app",
+)
+
+pkg_tar(
+ name = "app_layer",
+ srcs = [":app_files"],
+)
+
+oci_image(
+ name = "pipeline_image",
+ base = "@eclipse_temurin_jdk17",
+ tars = [":app_layer"],
+ entrypoint = [
+ "java",
+ "-javaagent:/app/otel-agent.jar",
+ "-jar",
+ "/app/app.jar",
+ ],
+ workdir = "/app",
+)
+
+# Builds and loads the image into the local container daemon.
+# Run with: bazel run //pipeline:pipeline_load
+oci_load(
+ name = "pipeline_load",
+ image = ":pipeline_image",
+ repo_tags = ["pipeline-app:latest"],
+)
+
diff --git a/pipeline/pom.xml b/pipeline/pom.xml
index 64c606af..f26644ad 100644
--- a/pipeline/pom.xml
+++ b/pipeline/pom.xml
@@ -29,6 +29,7 @@
17
4.29.3
+ target
@@ -177,6 +178,7 @@
+ ${project.basedir}/${build.dir}
org.apache.maven.plugins
diff --git a/pipeline/run_generate_openapi.sh b/pipeline/run_generate_openapi.sh
index 4f66e1a5..1632b029 100755
--- a/pipeline/run_generate_openapi.sh
+++ b/pipeline/run_generate_openapi.sh
@@ -2,4 +2,4 @@
set -euo pipefail
cd "./pipeline/"
-./mvnw --batch-mode -s maven-settings.xml verify -P integration-test -DskipTests
+./mvnw --batch-mode -s maven-settings.xml verify -P integration-test -DskipTests -Dbuild.dir=target/bazel-openapi