|
| 1 | +# SPDX-License-Identifier: Apache-2.0 |
| 2 | + |
| 3 | +# Copyright (c) 2024 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/helm:%%helm_version%%-%RELEASE% |
| 19 | +#!BuildTag: opensuse/helm:%%helm_version%% |
| 20 | +#!BuildTag: opensuse/helm:3.16 |
| 21 | +#!BuildTag: opensuse/helm:3 |
| 22 | +#!BuildTag: opensuse/helm:latest |
| 23 | + |
| 24 | +FROM opensuse/bci/bci-micro:latest AS target |
| 25 | +FROM opensuse/tumbleweed:latest AS builder |
| 26 | +COPY --from=target / /target |
| 27 | + |
| 28 | +RUN set -euo pipefail; \ |
| 29 | + zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends ca-certificates-mozilla helm; \ |
| 30 | + zypper -n clean; \ |
| 31 | + rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2} |
| 32 | +# sanity check that the version from the tag is equal to the version of helm that we expect |
| 33 | +RUN set -euo pipefail; \ |
| 34 | + [ "$(rpm --root /target -q --qf '%{version}' helm | \ |
| 35 | + cut -d '.' -f -2)" = "3.16" ] |
| 36 | +FROM opensuse/bci/bci-micro:latest |
| 37 | +COPY --from=builder /target / |
| 38 | +# Define labels according to https://en.opensuse.org/Building_derived_containers |
| 39 | +# labelprefix=org.opensuse.application.helm |
| 40 | +LABEL org.opencontainers.image.title="openSUSE Tumbleweed Kubernetes Package Manager" |
| 41 | +LABEL org.opencontainers.image.description="Kubernetes Package Manager container based on the openSUSE Tumbleweed Base Container Image." |
| 42 | +LABEL org.opencontainers.image.version="%%helm_version%%" |
| 43 | +LABEL org.opencontainers.image.url="https://www.opensuse.org" |
| 44 | +LABEL org.opencontainers.image.created="%BUILDTIME%" |
| 45 | +LABEL org.opencontainers.image.vendor="openSUSE Project" |
| 46 | +LABEL org.opencontainers.image.source="%SOURCEURL%" |
| 47 | +LABEL org.opencontainers.image.ref.name="%%helm_version%%-%RELEASE%" |
| 48 | +LABEL org.opensuse.reference="registry.opensuse.org/opensuse/helm:%%helm_version%%-%RELEASE%" |
| 49 | +LABEL org.openbuildservice.disturl="%DISTURL%" |
| 50 | +LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime#openSUSE_BCI" |
| 51 | +LABEL org.opensuse.release-stage="released" |
| 52 | +# endlabelprefix |
| 53 | +LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/SUSE/BCI-dockerfile-generator/Tumbleweed/helm-image/README.md" |
| 54 | +ENTRYPOINT ["/usr/bin/helm"] |
| 55 | +CMD ["help"] |
0 commit comments