-
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.
* run on public runners
- Loading branch information
Showing
11 changed files
with
136 additions
and
140 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 |
---|---|---|
@@ -1,26 +1,21 @@ | ||
ARG GOLANG_VERSION=1.18 | ||
ARG GOLANG_VERSION=1.20 | ||
FROM golang:${GOLANG_VERSION} as builder | ||
|
||
WORKDIR /aws-quota-provider | ||
|
||
ENV GO111MODULE=on | ||
ENV CGO_ENABLED=0 | ||
ENV GOOS=linux | ||
ENV GOARCH=amd64 | ||
WORKDIR /workspace | ||
|
||
COPY . . | ||
|
||
RUN cd /aws-quota-provider && go mod download | ||
RUN go mod download | ||
|
||
# Build | ||
RUN go build -a -o quota ./cmd/quota | ||
RUN CGO_ENABLED=0 go build -a -o main ./cmd/quota | ||
|
||
# Use distroless as minimal base image to package the manager binary | ||
FROM gcr.io/distroless/base:latest-amd64 | ||
WORKDIR / | ||
|
||
LABEL org.opencontainers.image.source https://github.com/ydataai/aws-quota-provider | ||
LABEL org.opencontainers.image.source https://github.com/ydataai/aws-adapter | ||
|
||
COPY --from=builder /aws-quota-provider/quota . | ||
COPY --from=builder /workspace/main . | ||
|
||
ENTRYPOINT ["/quota"] | ||
ENTRYPOINT ["/main"] |
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,33 +1,41 @@ | ||
module github.com/ydataai/aws-adapter | ||
|
||
go 1.18 | ||
go 1.20 | ||
|
||
require ( | ||
github.com/aws/aws-sdk-go v1.44.213 | ||
github.com/gin-gonic/gin v1.7.7 | ||
github.com/gin-gonic/gin v1.9.0 | ||
github.com/golang/mock v1.5.0 | ||
github.com/google/go-cmp v0.5.9 | ||
github.com/kelseyhightower/envconfig v1.4.0 | ||
github.com/ydataai/go-core v0.9.3 | ||
github.com/ydataai/go-core v0.13.0-1bdef48 | ||
) | ||
|
||
require ( | ||
github.com/bytedance/sonic v1.8.6 // indirect | ||
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect | ||
github.com/gin-contrib/sse v0.1.0 // indirect | ||
github.com/go-playground/locales v0.13.0 // indirect | ||
github.com/go-playground/universal-translator v0.17.0 // indirect | ||
github.com/go-playground/validator/v10 v10.4.1 // indirect | ||
github.com/golang/protobuf v1.5.2 // indirect | ||
github.com/google/uuid v1.2.0 // indirect | ||
github.com/go-playground/locales v0.14.1 // indirect | ||
github.com/go-playground/universal-translator v0.18.1 // indirect | ||
github.com/go-playground/validator/v10 v10.12.0 // indirect | ||
github.com/goccy/go-json v0.10.2 // indirect | ||
github.com/google/uuid v1.3.0 // indirect | ||
github.com/jmespath/go-jmespath v0.4.0 // indirect | ||
github.com/json-iterator/go v1.1.11 // indirect | ||
github.com/leodido/go-urn v1.2.0 // indirect | ||
github.com/mattn/go-isatty v0.0.12 // indirect | ||
github.com/json-iterator/go v1.1.12 // indirect | ||
github.com/klauspost/cpuid/v2 v2.2.4 // indirect | ||
github.com/leodido/go-urn v1.2.2 // indirect | ||
github.com/mattn/go-isatty v0.0.18 // indirect | ||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect | ||
github.com/modern-go/reflect2 v1.0.1 // indirect | ||
github.com/sirupsen/logrus v1.8.1 // indirect | ||
github.com/ugorji/go/codec v1.1.7 // indirect | ||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect | ||
golang.org/x/sys v0.1.0 // indirect | ||
google.golang.org/protobuf v1.27.1 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
github.com/modern-go/reflect2 v1.0.2 // indirect | ||
github.com/pelletier/go-toml/v2 v2.0.7 // indirect | ||
github.com/sirupsen/logrus v1.9.0 // indirect | ||
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect | ||
github.com/ugorji/go/codec v1.2.11 // indirect | ||
golang.org/x/arch v0.3.0 // indirect | ||
golang.org/x/crypto v0.7.0 // indirect | ||
golang.org/x/net v0.8.0 // indirect | ||
golang.org/x/sys v0.6.0 // indirect | ||
golang.org/x/text v0.8.0 // indirect | ||
google.golang.org/protobuf v1.30.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
Oops, something went wrong.