-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the latest debian image to build the journald client with the latest libraries. Otherwise, journald receiver doesn't work on nodes with latests OSs like Amazon Linux 2023.
- Loading branch information
Showing
4 changed files
with
12 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 4 additions & 11 deletions
15
tests/receivers/smartagent/telegraf-exec/testdata/exec/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
ARG SPLUNK_OTEL_COLLECTOR_IMAGE | ||
ARG IMAGE_PLATFORM | ||
FROM --platform=${IMAGE_PLATFORM} golang:1.19 as golang | ||
|
||
RUN mkdir -p /some/path | ||
FROM --platform=${IMAGE_PLATFORM} golang:1.23 as golang | ||
COPY telegraf-exec.go /opt/telegraf-exec.go | ||
RUN go build -o /opt/telegraf-exec /opt/telegraf-exec.go | ||
|
||
FROM ${SPLUNK_OTEL_COLLECTOR_IMAGE} | ||
|
||
ENV PATH=/some/path/go/bin:$PATH | ||
ENV GOROOT=/some/path/go | ||
ENV GOCACHE=/some/path/go/.cache/go-build | ||
|
||
COPY telegraf-exec.go /opt/telegraf-exec.go | ||
COPY config.yaml /etc/config.yaml | ||
COPY --from=golang --chown=999 /some/path /some/path | ||
COPY --from=golang --chown=999 /usr/local/go /some/path/go | ||
COPY --from=golang /opt/telegraf-exec /opt/telegraf-exec |
2 changes: 1 addition & 1 deletion
2
tests/receivers/smartagent/telegraf-exec/testdata/exec/config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters