-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into miani-k8s-jenkins-20250113
- Loading branch information
Showing
10 changed files
with
116 additions
and
34 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
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Clone git repo | ||
FROM alpine/git:1.0.7 as git | ||
|
||
ENV JAEGER_OPERATOR_VERSION=v1.65.0 | ||
|
||
RUN git clone https://github.com/jaegertracing/jaeger-operator.git /src/jaeger-operator/ \ | ||
&& cd /src/jaeger-operator/ \ | ||
&& git checkout ${JAEGER_OPERATOR_VERSION} | ||
|
||
|
||
FROM golang:1.22.0 as builder | ||
|
||
ENV LD_FLAGS="-X github.com/jaegertracing/jaeger-operator/pkg/version.version=v1.65.0 \ | ||
-X github.com/jaegertracing/jaeger-operator/pkg/version.buildDate=${VERSION_DATE} \ | ||
-X github.com/jaegertracing/jaeger-operator/pkg/version.defaultJaeger=1.65.0" | ||
|
||
COPY --from=git /src/jaeger-operator /go/src/github.com/jaegertracing/jaeger-operator | ||
|
||
WORKDIR /go/src/github.com/jaegertracing/jaeger-operator | ||
|
||
ENV GO111MODULE=on | ||
|
||
RUN go install github.com/kardianos/govendor@latest \ | ||
&& GOOS=linux GOARCH=amd64 CGO_ENABLED=0 \ | ||
go build -o jaeger-operator -ldflags "${LD_FLAGS} \ | ||
-X github.com/jaegertracing/jaeger-operator/pkg/version.buildDate=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" | ||
|
||
|
||
# Result Image | ||
FROM marketplace.gcr.io/google/debian12 | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
openssl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ENV OPERATOR=/usr/local/bin/jaeger-operator \ | ||
USER_UID=1001 \ | ||
USER_NAME=jaeger-operator | ||
|
||
ENV C2D_RELEASE=1.65.0 | ||
|
||
COPY --from=git /src/jaeger-operator/scripts/* /scripts/ | ||
|
||
# Binaries | ||
COPY --from=builder /go/src/github.com/jaegertracing/jaeger-operator/jaeger-operator ${OPERATOR} | ||
|
||
# License and Notices | ||
COPY --from=builder /go/src/github.com/jaegertracing/jaeger-operator/LICENSE /usr/share/jaeger-operator/LICENSE | ||
|
||
ENTRYPOINT ["/usr/local/bin/jaeger-operator"] | ||
|
||
USER ${USER_UID} |
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
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
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
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