-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added OCI labels for dockerfile in images folder
- Loading branch information
1 parent
39ec166
commit eee5180
Showing
12 changed files
with
37 additions
and
0 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 |
---|---|---|
|
@@ -13,6 +13,9 @@ | |
# limitations under the License. | ||
FROM alpine/git:2.45.2@sha256:80ed34dbc31f821e1555812bfef429382b5d6959fc875c0937b44763ee780ebe | ||
LABEL maintainer "Tekton Authors <[email protected]>" | ||
LABEL org.opencontainers.image.source=https://github.com/tektoncd/plumbing | ||
LABEL org.opencontainers.image.description="Image for Alpine-git Nonroot" | ||
LABEL org.opencontainers.image.licenses=Apache-2.0 | ||
|
||
RUN adduser -D nonroot -u 1000 | ||
USER nonroot |
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 |
---|---|---|
|
@@ -13,6 +13,9 @@ | |
# limitations under the License. | ||
FROM gcr.io/google.com/cloudsdktool/cloud-sdk:alpine@sha256:1a165df95679dad757f1828601616d39a9d2c58582dc917984f4c1956a9e9655 | ||
LABEL maintainer "Tekton Authors <[email protected]>" | ||
LABEL org.opencontainers.image.source=https://github.com/tektoncd/plumbing | ||
LABEL org.opencontainers.image.description="Image for Buildx" | ||
LABEL org.opencontainers.image.licenses=Apache-2.0 | ||
|
||
RUN mkdir -p ~/.docker/cli-plugins \ | ||
&& curl -fsSL https://github.com/docker/buildx/releases/download/v0.8.1/buildx-v0.8.1.linux-amd64 > ~/.docker/cli-plugins/docker-buildx \ | ||
|
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 |
---|---|---|
|
@@ -19,6 +19,9 @@ RUN make -C /go/src/knative.dev/test-infra/tools/coverage | |
|
||
FROM golang:1.23@sha256:ad5c126b5cf501a8caef751a243bb717ec204ab1aa56dc41dc11be089fafcb4f | ||
LABEL maintainer "Tekton Authors <[email protected]>" | ||
LABEL org.opencontainers.image.source=https://github.com/tektoncd/plumbing | ||
LABEL org.opencontainers.image.description="Image for testing Coverage" | ||
LABEL org.opencontainers.image.licenses=Apache-2.0 | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
|
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 |
---|---|---|
|
@@ -13,6 +13,9 @@ | |
# limitations under the License. | ||
FROM alpine:3.20@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d | ||
LABEL maintainer "Tekton Authors <[email protected]>" | ||
LABEL org.opencontainers.image.source=https://github.com/tektoncd/plumbing | ||
LABEL org.opencontainers.image.description="Image for Hub" | ||
LABEL org.opencontainers.image.licenses=Apache-2.0 | ||
|
||
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories | ||
RUN apk add --no-cache \ | ||
|
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 |
---|---|---|
|
@@ -16,6 +16,9 @@ | |
|
||
FROM golang:1.23-alpine@sha256:9dd2625a1ff2859b8d8b01d8f7822c0f528942fe56cfe7a1e7c38d3b8d72d679 | ||
LABEL maintainer "Tekton Authors <[email protected]>" | ||
LABEL org.opencontainers.image.source=https://github.com/tektoncd/plumbing | ||
LABEL org.opencontainers.image.description="Image for kind e2e" | ||
LABEL org.opencontainers.image.licenses=Apache-2.0 | ||
|
||
WORKDIR /kind | ||
|
||
|
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 |
---|---|---|
|
@@ -34,6 +34,9 @@ RUN apk add --no-cache yq | |
FROM google/cloud-sdk:498.0.0-alpine@sha256:1a165df95679dad757f1828601616d39a9d2c58582dc917984f4c1956a9e9655 | ||
ARG GO_VERSION | ||
LABEL maintainer "Tekton Authors <[email protected]>" | ||
LABEL org.opencontainers.image.source=https://github.com/tektoncd/plumbing | ||
LABEL org.opencontainers.image.description="Build Container for Ko" | ||
LABEL org.opencontainers.image.licenses=Apache-2.0 | ||
|
||
# Install golang | ||
RUN curl https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz > go${GO_VERSION}.tar.gz | ||
|
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 |
---|---|---|
|
@@ -14,6 +14,9 @@ | |
FROM ghcr.io/ko-build/ko:v0.17.1@sha256:97b809c27679c4d1a6ed4a9acc18562a6b3688033cd3404c6e3722296cbdc802 AS ko | ||
FROM golang:1.23-alpine@sha256:9dd2625a1ff2859b8d8b01d8f7822c0f528942fe56cfe7a1e7c38d3b8d72d679 | ||
LABEL maintainer "Tekton Authors <[email protected]>" | ||
LABEL org.opencontainers.image.source=https://github.com/tektoncd/plumbing | ||
LABEL org.opencontainers.image.description="Image for Ko" | ||
LABEL org.opencontainers.image.licenses=Apache-2.0 | ||
|
||
RUN apk add --no-cache musl-dev gcc git | ||
ENV GO111MODULE on | ||
|
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 |
---|---|---|
|
@@ -13,6 +13,9 @@ | |
# limitations under the License. | ||
FROM python:3.13.0-alpine@sha256:c38ead8bcf521573dad837d7ecfdebbc87792202e89953ba8b2b83a9c5a520b6 | ||
LABEL maintainer "Tekton Authors <[email protected]>" | ||
LABEL org.opencontainers.image.source=https://github.com/tektoncd/plumbing | ||
LABEL org.opencontainers.image.description="Image for koparse" | ||
LABEL org.opencontainers.image.licenses=Apache-2.0 | ||
|
||
COPY ["koparse/koparse.py", "/usr/local/bin/koparse"] | ||
RUN chmod +x /usr/local/bin/koparse | ||
|
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 |
---|---|---|
|
@@ -27,6 +27,9 @@ RUN go install sigs.k8s.io/kustomize/kustomize/[email protected] | |
|
||
FROM alpine:3.20@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d | ||
LABEL maintainer "Tekton Authors <[email protected]>" | ||
LABEL org.opencontainers.image.source=https://github.com/tektoncd/plumbing | ||
LABEL org.opencontainers.image.description="Image for kubectl" | ||
LABEL org.opencontainers.image.licenses=Apache-2.0 | ||
|
||
# Kustomize requires git when pulling remote resources | ||
RUN apk --update add git less openssh && \ | ||
|
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 |
---|---|---|
|
@@ -26,6 +26,9 @@ RUN cd /go/src/k8s.io/test-infra && \ | |
FROM docker.io/library/ubuntu:24.04@sha256:99c35190e22d294cdace2783ac55effc69d32896daaa265f0bbedbcde4fbe3e5 | ||
ARG GO_VERSION | ||
LABEL maintainer "Tekton Authors <[email protected]>" | ||
LABEL org.opencontainers.image.source=https://github.com/tektoncd/plumbing | ||
LABEL org.opencontainers.image.description="Image for Test runner" | ||
LABEL org.opencontainers.image.licenses=Apache-2.0 | ||
|
||
ENV TERM=xterm | ||
|
||
|
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 |
---|---|---|
|
@@ -22,5 +22,8 @@ RUN ARCH=$(uname -m) \ | |
# Copy tkn binary from build container | ||
FROM alpine:3.20@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d | ||
LABEL maintainer "Tekton Authors <[email protected]>" | ||
LABEL org.opencontainers.image.source=https://github.com/tektoncd/plumbing | ||
LABEL org.opencontainers.image.description="Image for tkn" | ||
LABEL org.opencontainers.image.licenses=Apache-2.0 | ||
COPY --from=build /usr/local/bin/tkn /usr/local/bin/tkn | ||
|