|
| 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: suse/helm:%%helm_version%%-%RELEASE% |
| 19 | +#!BuildTag: suse/helm:%%helm_version%% |
| 20 | +#!BuildTag: suse/helm:3.16 |
| 21 | +#!BuildTag: suse/helm:3 |
| 22 | +#!BuildTag: suse/helm:latest |
| 23 | +#!BuildName: suse-helm-3.16 |
| 24 | +#!BuildVersion: 15.6.3.16 |
| 25 | +#!BuildRelease: 35 |
| 26 | +FROM registry.suse.com/bci/bci-micro:15.6 AS target |
| 27 | +FROM suse/sle15:15.6 AS builder |
| 28 | +COPY --from=target / /target |
| 29 | + |
| 30 | +RUN set -euo pipefail; \ |
| 31 | + zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends ca-certificates-mozilla helm; \ |
| 32 | + zypper -n clean; \ |
| 33 | + rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2} |
| 34 | +# sanity check that the version from the tag is equal to the version of helm that we expect |
| 35 | +RUN set -euo pipefail; \ |
| 36 | + [ "$(rpm --root /target -q --qf '%{version}' helm | \ |
| 37 | + cut -d '.' -f -2)" = "3.16" ] |
| 38 | +FROM registry.suse.com/bci/bci-micro:15.6 |
| 39 | +COPY --from=builder /target / |
| 40 | +# Define labels according to https://en.opensuse.org/Building_derived_containers |
| 41 | +# labelprefix=com.suse.application.helm |
| 42 | +LABEL org.opencontainers.image.authors="https://github.com/SUSE/bci/discussions" |
| 43 | +LABEL org.opencontainers.image.title="SLE Kubernetes Package Manager" |
| 44 | +LABEL org.opencontainers.image.description="Kubernetes Package Manager container based on the SLE Base Container Image." |
| 45 | +LABEL org.opencontainers.image.version="%%helm_version%%" |
| 46 | +LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/" |
| 47 | +LABEL org.opencontainers.image.created="%BUILDTIME%" |
| 48 | +LABEL org.opencontainers.image.vendor="SUSE LLC" |
| 49 | +LABEL org.opencontainers.image.source="%SOURCEURL%" |
| 50 | +LABEL org.opencontainers.image.ref.name="%%helm_version%%-%RELEASE%" |
| 51 | +LABEL org.opensuse.reference="registry.suse.com/suse/helm:%%helm_version%%-%RELEASE%" |
| 52 | +LABEL org.openbuildservice.disturl="%DISTURL%" |
| 53 | +LABEL com.suse.supportlevel="l3" |
| 54 | +LABEL com.suse.eula="sle-eula" |
| 55 | +LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15" |
| 56 | +LABEL com.suse.release-stage="released" |
| 57 | +# endlabelprefix |
| 58 | +LABEL org.opencontainers.image.base.name="%BASE_REFNAME%" |
| 59 | +LABEL org.opencontainers.image.base.digest="%BASE_DIGEST%" |
| 60 | +LABEL io.artifacthub.package.readme-url="%SOURCEURL%/README.md" |
| 61 | +ENTRYPOINT ["/usr/bin/helm"] |
| 62 | +CMD ["help"] |
0 commit comments