Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions bazel/container_images.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -367,3 +367,11 @@ def stirling_test_images():
repository = "golang_1_22_grpc_server_with_buildinfo",
digest = "sha256:67adba5e8513670fa37bd042862e7844f26239e8d2997ed8c3b0aa527bc04cc3",
)

# ClickHouse server image for testing.
# clickhouse/clickhouse-server:25.7-alpine, mirrored to the Pixie ghcr registry.
_container_image(
name = "clickhouse_server_base_image",
repository = "clickhouse_server_image_25_7",
digest = "sha256:60c53a520a1caad6555eb6772a8a9c91bb09774c1c7ec87e3371ea3da254eeab",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should mirror and tag the multiarch version?

$ crane digest clickhouse/clickhouse-server:25.7-alpine
sha256:258d438215084cad2b4504749bd7046a869a82789983831df6348a737c1a85f6

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

)
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_image", "container_layer")
load("//bazel:go_container.bzl", "go_container_libraries")
load("//bazel:pl_build_system.bzl", "pl_all_supported_go_sdk_versions", "pl_cc_test_library", "pl_go_test_versions")

Expand Down Expand Up @@ -364,3 +365,18 @@ pl_cc_test_library(
],
deps = ["//src/common/testing/test_utils:cc_library"],
)

# ClickHouse configuration layer for console logging
container_layer(
name = "clickhouse_config_layer",
directory = "/etc/clickhouse-server/config.d",
files = ["clickhouse_logging_config.xml"],
mode = "0644",
)

container_image(
name = "clickhouse",
base = "@clickhouse_server_base_image//image",
layers = [":clickhouse_config_layer"],
visibility = ["//visibility:public"],
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<clickhouse>
<logger>
<console>true</console>
<log remove="remove"/>
<errorlog remove="remove"/>
</logger>
</clickhouse>
Loading