-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable Dockerfile linter tool (#200)
* Improve e2e Dockerfile Signed-off-by: Victor Morales <[email protected]> * Use fixed distro less version image for generic autobumper Signed-off-by: Victor Morales <[email protected]> * Improve label_sync dockerfile Signed-off-by: Victor Morales <[email protected]> * Enable prow dockerfile lint job --------- Signed-off-by: Victor Morales <[email protected]>
- Loading branch information
1 parent
1bebbdc
commit 6d0a2db
Showing
4 changed files
with
34 additions
and
13 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,6 +1,6 @@ | ||
FROM hashicorp/terraform:1.4.5 | ||
RUN apk update && \ | ||
wget -c https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-427.0.0-linux-x86_64.tar.gz && \ | ||
tar xf /google-cloud-cli-427.0.0-linux-x86_64.tar.gz && \ | ||
apk add python3 && \ | ||
/google-cloud-sdk/install.sh -q | ||
FROM hashicorp/terraform:1.5.7 | ||
|
||
SHELL ["/bin/ash", "-eo", "pipefail", "-c"] | ||
RUN wget -q -c https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-446.0.0-linux-x86_64.tar.gz -O - | tar -xz -C /tmp && \ | ||
apk add --no-cache python3=3.11.5-r0 && \ | ||
/tmp/google-cloud-sdk/install.sh -q |
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,8 +1,14 @@ | ||
FROM golang:1.20.4-alpine3.17 as builder | ||
RUN apk update && apk add git && cd src && \ | ||
git clone https://github.com/kubernetes/test-infra.git && \ | ||
cd test-infra/label_sync && \ | ||
go build | ||
|
||
FROM golang:1.20.4-alpine3.17 | ||
COPY --from=builder /go/src/test-infra/label_sync/label_sync /go/bin | ||
WORKDIR /opt | ||
RUN apk add --no-cache git=2.38.5-r0 && \ | ||
git clone --depth 1 https://github.com/kubernetes/test-infra.git | ||
|
||
WORKDIR /opt/test-infra/label_sync | ||
RUN go build | ||
|
||
FROM gcr.io/distroless/base:nonroot | ||
|
||
COPY --from=builder /opt/test-infra/label_sync/label_sync /bin | ||
|
||
ENTRYPOINT ["/bin/label_sync"] |