Accepting request 1097012 from devel:BCI:Tumbleweed

- label capitalization and related cleanups

- Add release stage and lifecycle url

- Reduce busybox image size by removing Index.db
  Index.db is being created on demand by rpm(1) (as long as it is run as root)
  so we don't strictly have to ship it. currently the Index.db has a lot of
  empty space within which we could optimize away.
  until then removing the file saves 10% of the total compressed size.
- switch versioning to rolling Tumbleweed schema

- Add org.opencontainers.image.source label set to %SOURCEURL%

- Bump copyright year

OBS-URL: https://build.opensuse.org/request/show/1097012
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/busybox-image?expand=0&rev=2
This commit is contained in:
Fabian Vogt 2023-07-06 16:29:09 +00:00 committed by Git OBS Bridge
commit a26853df1b
4 changed files with 49 additions and 15 deletions

View File

@ -1,5 +1,4 @@
<services> <services>
<service mode="buildtime" name="kiwi_metainfo_helper"/>
<service mode="buildtime" name="kiwi_label_helper"/> <service mode="buildtime" name="kiwi_label_helper"/>
<service mode="buildtime" name="kiwi_metainfo_helper"/>
</services> </services>

View File

@ -1,3 +1,36 @@
-------------------------------------------------------------------
Fri Jun 23 15:33:33 UTC 2023 - Dirk Mueller <dmueller@suse.com>
- label capitalization and related cleanups
-------------------------------------------------------------------
Tue May 30 06:52:56 UTC 2023 - Dan Čermák <dcermak@suse.com>
- Add release stage and lifecycle url
-------------------------------------------------------------------
Tue Apr 25 22:24:05 UTC 2023 - Dirk Mueller <dmueller@suse.com>
- Reduce busybox image size by removing Index.db
Index.db is being created on demand by rpm(1) (as long as it is run as root)
so we don't strictly have to ship it. currently the Index.db has a lot of
empty space within which we could optimize away.
until then removing the file saves 10% of the total compressed size.
- switch versioning to rolling Tumbleweed schema
-------------------------------------------------------------------
Fri Mar 3 07:24:36 UTC 2023 - Dan Čermák <dcermak@suse.com>
- Add org.opencontainers.image.source label set to %SOURCEURL%
-------------------------------------------------------------------
Mon Jan 2 12:22:14 UTC 2023 - Dan Čermák <dcermak@suse.com>
- Bump copyright year
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jul 15 11:09:19 UTC 2022 - Dan Čermák <dcermak@suse.com> Fri Jul 15 11:09:19 UTC 2022 - Dan Čermák <dcermak@suse.com>

View File

@ -1,44 +1,42 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- SPDX-License-Identifier: MIT --> <!-- SPDX-License-Identifier: MIT -->
<!-- OBS-AddTag: bci/bci-busybox:%OS_VERSION_ID_SP% bci/bci-busybox:%OS_VERSION_ID_SP%.%RELEASE% bci/bci-busybox:latest --> <!-- OBS-AddTag: opensuse/bci/bci-busybox:%OS_VERSION_ID_SP% opensuse/bci/bci-busybox:%OS_VERSION_ID_SP%.%RELEASE% opensuse/bci/bci-busybox:latest -->
<!-- OBS-Imagerepo: obsrepositories:/ --> <!-- OBS-Imagerepo: obsrepositories:/ -->
<image schemaversion="6.5" name="busybox-image" xmlns:suse_label_helper="com.suse.label_helper"> <image schemaversion="6.5" name="busybox-image" xmlns:suse_label_helper="com.suse.label_helper">
<description type="system"> <description type="system">
<author>openSUSE Project</author> <author>openSUSE Project</author>
<contact>https://www.suse.com/</contact> <contact>https://www.suse.com/</contact>
<specification>openSUSE Tumbleweed BCI %OS_VERSION% Busybox Container Image</specification> <specification>openSUSE Tumbleweed BCI openSUSE Tumbleweed BusyBox Container Image</specification>
</description> </description>
<preferences> <preferences>
<type image="docker"> <type image="docker">
<containerconfig <containerconfig
name="bci/bci-busybox" name="opensuse/bci/bci-busybox"
tag="%OS_VERSION_ID_SP%" tag="%OS_VERSION_ID_SP%"
maintainer="openSUSE (https://www.opensuse.org/)" maintainer="openSUSE (https://www.opensuse.org/)"
additionaltags="%OS_VERSION_ID_SP%.%RELEASE%,latest"> additionaltags="%OS_VERSION_ID_SP%.%RELEASE%,latest">
<labels> <labels>
<!-- See https://en.opensuse.org/Building_derived_containers#Labels -->
<suse_label_helper:add_prefix prefix="org.opensuse.bci.busybox"> <suse_label_helper:add_prefix prefix="org.opensuse.bci.busybox">
<label name="org.opencontainers.image.title" value="openSUSE Tumbleweed BCI %OS_VERSION% Busybox Container Image"/> <label name="org.opencontainers.image.title" value="openSUSE Tumbleweed BCI openSUSE Tumbleweed BusyBox"/>
<label name="org.opencontainers.image.description" value="Busybox based on the SLE Base Container Image."/> <label name="org.opencontainers.image.description" value="openSUSE Tumbleweed BusyBox container based on the openSUSE Tumbleweed Base Container Image."/>
<label name="org.opencontainers.image.version" value="%OS_VERSION_ID_SP%.%RELEASE%"/> <label name="org.opencontainers.image.version" value="%OS_VERSION_ID_SP%.%RELEASE%"/>
<label name="org.opencontainers.image.created" value="%BUILDTIME%"/> <label name="org.opencontainers.image.created" value="%BUILDTIME%"/>
<label name="org.opencontainers.image.vendor" value="openSUSE Project"/> <label name="org.opencontainers.image.vendor" value="openSUSE Project"/>
<label name="org.opencontainers.image.source" value="%SOURCEURL%"/>
<label name="org.opencontainers.image.url" value="https://www.opensuse.org"/> <label name="org.opencontainers.image.url" value="https://www.opensuse.org"/>
<label name="org.opensuse.reference" value="registry.opensuse.org/bci/bci-busybox:%OS_VERSION_ID_SP%.%RELEASE%"/> <label name="org.opensuse.reference" value="registry.opensuse.org/opensuse/bci/bci-busybox:%OS_VERSION_ID_SP%.%RELEASE%"/>
<label name="org.openbuildservice.disturl" value="%DISTURL%"/> <label name="org.openbuildservice.disturl" value="%DISTURL%"/>
<label name="com.suse.release-stage" value="released"/> <label name="org.opensuse.release-stage" value="released"/>
<label name="org.opensuse.lifecycle-url" value="https://en.opensuse.org/Lifetime"/>
</suse_label_helper:add_prefix> </suse_label_helper:add_prefix>
</labels> </labels>
<subcommand execute="/bin/sh"/> <subcommand execute="/bin/sh"/>
</containerconfig> </containerconfig>
</type> </type>
<version>15.Tumbleweed.0</version> <version>2023</version>
<packagemanager>zypper</packagemanager> <packagemanager>zypper</packagemanager>
<rpm-check-signatures>false</rpm-check-signatures> <rpm-check-signatures>false</rpm-check-signatures>
<rpm-excludedocs>true</rpm-excludedocs> <rpm-excludedocs>true</rpm-excludedocs>

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: (c) 2022 SUSE LLC # SPDX-FileCopyrightText: (c) 2022-2023 SUSE LLC
set -euo pipefail set -euo pipefail
@ -16,7 +16,11 @@ if command -v rpm > /dev/null; then
suseImportBuildKey suseImportBuildKey
fi fi
sed -i 's|/bin/bash|/bin/sh|' /etc/passwd sed -i 's|/bin/bash|/bin/sh|' /etc/passwd
# Will be recreated by the next rpm(1) run as root user
rm -v /usr/lib/sysimage/rpm/Index.db
#======================================= #=======================================
# Clean up after zypper if it is present # Clean up after zypper if it is present