-
Notifications
You must be signed in to change notification settings - Fork 448
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 hosseini92-patch-rabbitmq-external-access-…
…instructions
- Loading branch information
Showing
21 changed files
with
124 additions
and
272 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
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,45 @@ | ||
# Clone git repo | ||
FROM alpine/git:1.0.7 as git | ||
|
||
ENV PROMETHEUS_OPERATOR_VERSION=v0.67.0 | ||
|
||
RUN git clone https://github.com/prometheus-operator/prometheus-operator.git /src/prometheus-operator/ \ | ||
&& cd /src/prometheus-operator/ \ | ||
&& git checkout $PROMETHEUS_OPERATOR_VERSION | ||
|
||
FROM golang:1.20 as builder | ||
|
||
COPY --from=git /src/prometheus-operator /go/src/github.com/prometheus-operator/prometheus-operator | ||
|
||
WORKDIR /go/src/github.com/prometheus-operator/prometheus-operator | ||
|
||
ENV GO111MODULE=on | ||
|
||
RUN set -x && \ | ||
apt-get update && apt-get install -qq -y openssl | ||
|
||
RUN git config --global http.sslverify false \ | ||
&& GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags="-s \ | ||
-X github.com/prometheus-operator/prometheus-operator/pkg/version.Version=0.67.0" \ | ||
-o operator cmd/operator/main.go | ||
|
||
# Download licenses | ||
RUN go install github.com/google/go-licenses@latest \ | ||
&& go mod download \ | ||
&& go-licenses report github.com/prometheus-operator/prometheus-operator/cmd/operator/ > all-licenses | ||
|
||
# Result Image | ||
FROM marketplace.gcr.io/google/c2d-debian11 | ||
|
||
ENV C2D_RELEASE=0.67.0 | ||
|
||
# Binaries | ||
COPY --from=builder /go/src/github.com/prometheus-operator/prometheus-operator/operator /bin | ||
|
||
# All Licenses | ||
COPY --from=builder /go/src/github.com/prometheus-operator/prometheus-operator/all-licenses /usr/share/prometheus-operator/LICENSE | ||
|
||
# User 'nobody' has uid `65534' | ||
USER 65534 | ||
|
||
ENTRYPOINT ["/bin/operator"] |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.