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 32bf2891034cae6b5fa1eab131ff5ea9f25bcb7f Author: Zhanhui Li <[email protected]> AuthorDate: Fri Sep 23 13:26:50 2022 +0800 Debug --- cpp/WORKSPACE | 7 +++++++ cpp/examples/BUILD.bazel | 11 ++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cpp/WORKSPACE b/cpp/WORKSPACE index a2472b6..190b061 100644 --- a/cpp/WORKSPACE +++ b/cpp/WORKSPACE @@ -26,6 +26,13 @@ container_deps() load("@io_bazel_rules_docker//cc:image.bzl", cc_image_repos = "repositories") cc_image_repos() +load("@io_bazel_rules_docker//container:container.bzl", "container_pull") +container_pull( + name = "cc_base", + registry = "index.docker.io", + repository = "library/alpine", + tag = "3.8", +) # Support Bazel RBE(remote build execution) load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") diff --git a/cpp/examples/BUILD.bazel b/cpp/examples/BUILD.bazel index 2959b66..0d4436b 100644 --- a/cpp/examples/BUILD.bazel +++ b/cpp/examples/BUILD.bazel @@ -16,7 +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") +load("@io_bazel_rules_docker//container:container.bzl", "container_image") cc_binary( name = "example_producer", @@ -29,16 +29,9 @@ cc_binary( ], ) -container_pull( - name = "alpine", - registry = "index.docker.io", - repository = "library/alpine", - tag = "3.8", -) - container_image( name = "base_image", - base = "alpine", + base = "@cc_base//image", env = { "GRPC_VERBOSITY": "debug", "GRPC_TRACE": "tcp,http,api",
