You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by li...@apache.org on 2022/09/27 03:51:46 UTC
[rocketmq-clients] 03/11: Use alpine base image
This is an automated email from the ASF dual-hosted git repository.
lizhanhui pushed a commit to branch container
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git
commit f100e51a0bc51a4e4726ffec3430b11c176344f5
Author: Zhanhui Li <li...@apache.org>
AuthorDate: Fri Sep 23 13:23:46 2022 +0800
Use alpine base image
---
cpp/examples/BUILD.bazel | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/cpp/examples/BUILD.bazel b/cpp/examples/BUILD.bazel
index fb9b392..2959b66 100644
--- a/cpp/examples/BUILD.bazel
+++ b/cpp/examples/BUILD.bazel
@@ -16,6 +16,7 @@
#
load("@rules_cc//cc:defs.bzl", "cc_binary")
load("@io_bazel_rules_docker//cc:image.bzl", "cc_image")
+load("@io_bazel_rules_docker//container:container.bzl", "container_pull", "container_image")
cc_binary(
name = "example_producer",
@@ -28,6 +29,22 @@ cc_binary(
],
)
+container_pull(
+ name = "alpine",
+ registry = "index.docker.io",
+ repository = "library/alpine",
+ tag = "3.8",
+)
+
+container_image(
+ name = "base_image",
+ base = "alpine",
+ env = {
+ "GRPC_VERBOSITY": "debug",
+ "GRPC_TRACE": "tcp,http,api",
+ },
+)
+
cc_image(
name = "container_example_producer",
srcs = [
@@ -37,6 +54,7 @@ cc_image(
"//source/rocketmq:rocketmq_library",
"@com_github_gflags_gflags//:gflags",
],
+ base = ":base_image",
)
cc_binary(