forked from grafana/tempo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use distroless base image for tempo (grafana#4556)
This image contains busybox, making debugging easier by running /busybox/sh In addition, the latest ca-certificates from alpin are copied, as the ones in Debian are severely out of date.
- Loading branch information
1 parent
bdff7cc
commit 14efba0
Showing
5 changed files
with
46 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
FROM alpine:3.21 as certs | ||
RUN apk --update add ca-certificates | ||
FROM alpine:latest AS ca-certificates | ||
RUN apk add --update --no-cache ca-certificates | ||
|
||
FROM gcr.io/distroless/static-debian12:debug | ||
|
||
SHELL ["/busybox/sh", "-c"] | ||
|
||
ARG TARGETARCH | ||
COPY bin/linux/tempo-cli-${TARGETARCH} /tempo-cli | ||
COPY --from=ca-certificates /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
|
||
ENTRYPOINT ["/tempo-cli"] |
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,13 +1,17 @@ | ||
FROM alpine:3.21 as certs | ||
RUN apk --update add ca-certificates | ||
ARG TARGETARCH | ||
COPY bin/linux/tempo-query-${TARGETARCH} /tempo-query | ||
FROM alpine:latest AS ca-certificates | ||
RUN apk add --update --no-cache ca-certificates | ||
|
||
RUN addgroup -g 10001 -S tempo && \ | ||
adduser -u 10001 -S tempo -G tempo | ||
FROM gcr.io/distroless/static-debian12:debug | ||
|
||
USER 10001:10001 | ||
SHELL ["/busybox/sh", "-c"] | ||
|
||
RUN ["/busybox/addgroup", "-g", "10001", "-S", "tempo"] | ||
RUN ["/busybox/adduser", "-u", "10001", "-S", "tempo", "-G", "tempo"] | ||
|
||
ARG TARGETARCH | ||
COPY bin/linux/tempo-query-${TARGETARCH} /tempo-query | ||
COPY --from=ca-certificates /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
|
||
USER 10001:10001 | ||
|
||
ENTRYPOINT ["/tempo-query"] |
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