forked from banzaicloud/spot-price-exporter
-
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.
Update go // adapt to arm // remove dep
- Loading branch information
Showing
3 changed files
with
17 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
FROM golang:1.9.3-alpine3.7 as backend | ||
FROM golang:1.22.2-alpine3.19 as builder | ||
RUN apk update && apk add ca-certificates curl git make tzdata | ||
|
||
RUN mkdir -p /go/src/github.com/banzaicloud/spot-price-exporter | ||
ADD Gopkg.* Makefile /go/src/github.com/banzaicloud/spot-price-exporter/ | ||
WORKDIR /go/src/github.com/banzaicloud/spot-price-exporter | ||
|
||
RUN make vendor | ||
ADD . /go/src/github.com/banzaicloud/spot-price-exporter | ||
|
||
RUN make vendor | ||
RUN go build -o /bin/spot-price-exporter . | ||
|
||
|
||
FROM alpine:3.7 | ||
COPY --from=backend /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=0 /bin/spot-price-exporter /bin | ||
FROM alpine:3.19 | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=builder /bin/spot-price-exporter /bin | ||
ENTRYPOINT ["/bin/spot-price-exporter"] |
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,9 @@ | ||
module github.com/banzaicloud/spot-price-exporter | ||
|
||
go 1.22 | ||
|
||
require ( | ||
github.com/prometheus/client_golang v0.8.0 | ||
github.com/sirupsen/logrus v1.0.4 | ||
github.com/aws/aws-sdk-go v1.13.34 | ||
) |