|
| 1 | +# SPDX-License-Identifier: Apache-2.0 |
| 2 | + |
| 3 | +# Copyright (c) 2025 SUSE LLC |
| 4 | + |
| 5 | +# All modifications and additions to the file contributed by third parties |
| 6 | +# remain the property of their copyright owners, unless otherwise agreed |
| 7 | +# upon. |
| 8 | + |
| 9 | +# The content of THIS FILE IS AUTOGENERATED and should not be manually modified. |
| 10 | +# It is maintained by the BCI team and generated by |
| 11 | +# https://github.com/SUSE/BCI-dockerfile-generator |
| 12 | + |
| 13 | +# Please submit bugfixes or comments via https://bugs.opensuse.org/ |
| 14 | +# You can contact the BCI team via https://github.com/SUSE/bci/discussions |
| 15 | + |
| 16 | +#!UseOBSRepositories |
| 17 | + |
| 18 | +#!BuildTag: opensuse/kubectl:%%kubectl_version%%-%RELEASE% |
| 19 | +#!BuildTag: opensuse/kubectl:%%kubectl_version%% |
| 20 | +#!BuildTag: opensuse/kubectl:1.29 |
| 21 | +#!BuildTag: opensuse/kubectl:1.29 |
| 22 | + |
| 23 | +FROM opensuse/bci/bci-micro:latest AS target |
| 24 | +FROM opensuse/tumbleweed:latest AS builder |
| 25 | +COPY --from=target / /target |
| 26 | + |
| 27 | +RUN set -euo pipefail; \ |
| 28 | + zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends kubernetes1.29-client; \ |
| 29 | + zypper -n clean; \ |
| 30 | + rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2} |
| 31 | +FROM opensuse/bci/bci-micro:latest |
| 32 | +COPY --from=builder /target / |
| 33 | +# Define labels according to https://en.opensuse.org/Building_derived_containers |
| 34 | +# labelprefix=org.opensuse.application.kubectl |
| 35 | +LABEL org.opencontainers.image.title="openSUSE Tumbleweed kubectl" |
| 36 | +LABEL org.opencontainers.image.description="Kubernetes CLI for communicating with a Kubernetes cluster's control plane, using the Kubernetes API." |
| 37 | +LABEL org.opencontainers.image.version="%%kubectl_version%%" |
| 38 | +LABEL org.opencontainers.image.url="https://www.opensuse.org" |
| 39 | +LABEL org.opencontainers.image.created="%BUILDTIME%" |
| 40 | +LABEL org.opencontainers.image.vendor="openSUSE Project" |
| 41 | +LABEL org.opencontainers.image.source="%SOURCEURL%" |
| 42 | +LABEL org.opencontainers.image.ref.name="%%kubectl_version%%-%RELEASE%" |
| 43 | +LABEL org.opensuse.reference="registry.opensuse.org/opensuse/kubectl:%%kubectl_version%%-%RELEASE%" |
| 44 | +LABEL org.openbuildservice.disturl="%DISTURL%" |
| 45 | +LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime#openSUSE_BCI" |
| 46 | +LABEL org.opensuse.release-stage="released" |
| 47 | +# endlabelprefix |
| 48 | +LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/SUSE/BCI-dockerfile-generator/Tumbleweed/kubectl-1.29-image/README.md" |
| 49 | +LABEL io.artifacthub.package.logo-url="https://raw.githubusercontent.com/kubernetes/kubernetes/master/logo/logo.png" |
| 50 | +ENTRYPOINT ["kubectl"] |
0 commit comments