Skip to content

Commit 5f6c3a8

Browse files
authored
Merge pull request #3095 from SUSE/for-deploy-Tumbleweed
πŸ€–: Update build recipes for Tumbleweed
2 parents 3d8d5d1 + d473174 commit 5f6c3a8

5 files changed

Lines changed: 71 additions & 119 deletions

File tree

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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/registry:%%registry_version%%-%RELEASE%
19+
#!BuildTag: opensuse/registry:%%registry_version%%
20+
#!BuildTag: opensuse/registry:3.0
21+
#!BuildTag: opensuse/registry:latest
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+
export PERMCTL_ALLOW_INSECURE_MODE_IF_NO_PROC=1; \
29+
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends apache2-utils ca-certificates-mozilla distribution-registry
30+
31+
# cleanup logs and temporary files
32+
RUN set -euo pipefail; zypper -n --installroot /target clean -a; \
33+
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; \
34+
rm -rf {/target,}/run/*; \
35+
rm -f {/target,}/etc/{shadow-,group-,passwd-,.pwd.lock}; \
36+
rm -f {/target,}/usr/lib/sysimage/rpm/.rpm.lock; \
37+
rm -f {/target,}/var/cache/ldconfig/aux-cache; \
38+
command -v zypper >/dev/null 2>&1 || rm -f /var/lib/zypp/AutoInstalled
39+
40+
# set the day of last password change to empty
41+
RUN set -euo pipefail; sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /target/etc/shadow
42+
FROM opensuse/bci/bci-micro:latest
43+
COPY --from=builder /target /
44+
# Define labels according to https://en.opensuse.org/Building_derived_containers
45+
# labelprefix=org.opensuse.application.registry
46+
LABEL org.opencontainers.image.title="openSUSE Tumbleweed OCI Container Registry (Distribution)"
47+
LABEL org.opencontainers.image.description="OCI Container Registry (Distribution) container based on the openSUSE Tumbleweed Base Container Image."
48+
LABEL org.opencontainers.image.version="%%registry_version%%"
49+
LABEL org.opencontainers.image.url="https://www.opensuse.org"
50+
LABEL org.opencontainers.image.created="%BUILDTIME%"
51+
LABEL org.opencontainers.image.vendor="openSUSE Project"
52+
LABEL org.opencontainers.image.source="%SOURCEURL%"
53+
LABEL org.opencontainers.image.ref.name="%%registry_version%%-%RELEASE%"
54+
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/registry:%%registry_version%%-%RELEASE%"
55+
LABEL org.openbuildservice.disturl="%DISTURL%"
56+
LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime#openSUSE_BCI"
57+
LABEL org.opensuse.release-stage="released"
58+
# endlabelprefix
59+
LABEL io.artifacthub.package.readme-url="%SOURCEURL_WITH(README.md)%"
60+
ENTRYPOINT ["/usr/bin/registry"]
61+
CMD ["serve", "/etc/registry/config.yml"]
62+
EXPOSE 5000/tcp
63+
USER registry
64+
VOLUME /var/lib/docker-registry

β€Ždistribution-image/_serviceβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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"/>
44
<service mode="buildtime" name="replace_using_package_version">
5-
<param name="file">distribution-image.kiwi</param>
5+
<param name="file">Dockerfile</param>
66
<param name="regex">%%registry_version%%</param>
77
<param name="package">distribution-registry</param>
88
<param name="parse-version">minor</param>

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

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

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
-------------------------------------------------------------------
2+
Wed Oct 29 16:55:45 UTC 2025 - SUSE Update Bot <bci-internal@suse.de>
3+
4+
- switch to a docker based build
5+
16
-------------------------------------------------------------------
27
Mon Sep 29 09:32:28 UTC 2025 - SUSE Update Bot <bci-internal@suse.de>
38

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

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

0 commit comments

Comments
Β (0)