Skip to content

Commit 07606b5

Browse files
authored
Merge pull request #2128 from SUSE/for-deploy-Tumbleweed
πŸ€–: Update build recipes for Tumbleweed
2 parents cd870e6 + 8867b4d commit 07606b5

File tree

5 files changed

+67
-97
lines changed

5 files changed

+67
-97
lines changed

β€Žhelm-image/Dockerfileβ€Ž

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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"]

β€Žhelm-image/_serviceβ€Ž

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<services>
2-
<service mode="buildtime" name="kiwi_label_helper"/>
2+
<service mode="buildtime" name="docker_label_helper"/>
33
<service mode="buildtime" name="kiwi_metainfo_helper"/>
4+
<service mode="buildtime" name="replace_using_package_version">
5+
<param name="file">Dockerfile</param>
6+
<param name="regex">%%helm_version%%</param>
7+
<param name="package">helm</param>
8+
<param name="parse-version">patch</param>
9+
</service>
410
</services>

β€Žhelm-image/config.shβ€Ž

Lines changed: 0 additions & 30 deletions
This file was deleted.

β€Žhelm-image/helm-image.changesβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
-------------------------------------------------------------------
2+
Mon Dec 9 20:58:52 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
3+
4+
- switch to multibuild and add a version check at build time to avoid releasing incorrectly tagged containers
5+
16
-------------------------------------------------------------------
27
Wed Oct 30 15:34:45 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
38

β€Žhelm-image/helm-image.kiwiβ€Ž

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
Β (0)