Skip to content

Commit

Permalink
feat: Added OCI labels for dockerfile in images folder
Browse files Browse the repository at this point in the history
  • Loading branch information
LiteBrick204 authored and tekton-robot committed Nov 5, 2024
1 parent 39ec166 commit eee5180
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tekton/images/alpine-git-nonroot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions tekton/images/buildx-gcloud/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
3 changes: 3 additions & 0 deletions tekton/images/coverage/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
3 changes: 3 additions & 0 deletions tekton/images/hub/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
3 changes: 3 additions & 0 deletions tekton/images/kind-e2e/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions tekton/images/kind/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
# Runtime image for common dependencies when running kind tests.

FROM golang:1.23-alpine@sha256:9dd2625a1ff2859b8d8b01d8f7822c0f528942fe56cfe7a1e7c38d3b8d72d679
LABEL org.opencontainers.image.source=https://github.com/tektoncd/plumbing
LABEL org.opencontainers.image.description="Image for kind"
LABEL org.opencontainers.image.licenses=Apache-2.0


WORKDIR /kind

Expand Down
3 changes: 3 additions & 0 deletions tekton/images/ko-gcloud/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions tekton/images/ko/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions tekton/images/koparse/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions tekton/images/kubectl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
3 changes: 3 additions & 0 deletions tekton/images/test-runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions tekton/images/tkn/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit eee5180

Please sign in to comment.