Skip to content
Merged
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: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
FROM golang:1.25-bookworm AS build
# syntax=docker/dockerfile:1

FROM --platform=$BUILDPLATFORM golang:1.25-bookworm AS build

ARG TARGETOS
ARG TARGETARCH

WORKDIR /src
COPY . .
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 \
go run go.opentelemetry.io/collector/cmd/builder@v0.153.0 --config builder-config.yaml

FROM gcr.io/distroless/base-debian12:nonroot
Expand Down
2 changes: 1 addition & 1 deletion builder-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dist:
name: querycommentcol
description: QueryComment database OpenTelemetry Collector
output_path: ./dist
version: 0.1.1
version: 0.1.2

extensions:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/healthcheckextension v0.153.0
Expand Down
2 changes: 1 addition & 1 deletion config/mysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ processors:
resource/database:
attributes:
- key: qc_agent_version
value: ${env:QC_AGENT_VERSION:-0.1.1}
value: ${env:QC_AGENT_VERSION:-0.1.2}
action: insert
- key: db.system
value: mysql
Expand Down
2 changes: 1 addition & 1 deletion config/postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ processors:
resource/database:
attributes:
- key: qc_agent_version
value: ${env:QC_AGENT_VERSION:-0.1.1}
value: ${env:QC_AGENT_VERSION:-0.1.2}
action: insert
- key: db.system
value: postgresql
Expand Down
2 changes: 1 addition & 1 deletion config/sqlserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ processors:
resource/database:
attributes:
- key: qc_agent_version
value: ${env:QC_AGENT_VERSION:-0.1.1}
value: ${env:QC_AGENT_VERSION:-0.1.2}
action: insert
- key: db.system
value: ${env:QC_DB_SYSTEM:-sqlserver}
Expand Down
Loading