File Dockerfile of Package kiwi-image
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright (c) 2025 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon.
# The content of THIS FILE IS AUTOGENERATED and should not be manually modified.
# It is maintained by the BCI team and generated by
# https://github.com/SUSE/BCI-dockerfile-generator
# Please submit bugfixes or comments via https://bugs.opensuse.org/
# You can contact the BCI team via https://github.com/SUSE/bci/discussions
#!UseOBSRepositories
#!BuildTag: opensuse/bci/kiwi:%%kiwi_version%%-%RELEASE%
#!BuildTag: opensuse/bci/kiwi:%%kiwi_version%%
#!BuildTag: opensuse/bci/kiwi:10.2
#!BuildTag: opensuse/bci/kiwi:10
#!BuildTag: opensuse/bci/kiwi:latest
FROM opensuse/tumbleweed:latest
RUN set -euo pipefail; \
zypper -n install --no-recommends checkmedia dracut-kiwi-oem-repart enchant-devel gcc glibc-devel iproute2 java-21-openjdk-headless jing kiwi-systemdeps-filesystems kpartx libxml2-devel lvm2 make netcat-openbsd python3-devel python3-kiwi python3-pip tack timezone xorriso xz openSUSE-release openSUSE-release-appliance-docker curl findutils gawk git-core procps util-linux
RUN set -euo pipefail; zypper -n clean -a; \
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; rm -f {/target,}/etc/shadow-
# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=org.opensuse.bci.kiwi
LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI KIWI Appliance Builder 10.2 (kiwi)"
LABEL org.opencontainers.image.description="KIWI Appliance Builder 10.2 (kiwi) container based on the openSUSE Tumbleweed Base Container Image. This container is only supported in privileged mode."
LABEL org.opencontainers.image.version="%%kiwi_version%%"
LABEL org.opencontainers.image.url="https://www.opensuse.org"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.vendor="openSUSE Project"
LABEL org.opencontainers.image.source="%SOURCEURL%"
LABEL org.opencontainers.image.ref.name="%%kiwi_version%%-%RELEASE%"
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/bci/kiwi:%%kiwi_version%%-%RELEASE%"
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime#openSUSE_BCI"
LABEL org.opensuse.release-stage="released"
# endlabelprefix
LABEL io.artifacthub.package.readme-url="%SOURCEURL_WITH(README.md)%"
LABEL usage="This container requires an openSUSE/SUSE host kernel for full functionality."
# sanity check that the version from the tag is equal to the version of python3-kiwi that we expect
RUN set -euo pipefail; \
[ "$(rpm -q --qf '%{version}' python3-kiwi | \
cut -d '.' -f -2)" = "10.2" ]
RUN set -euo pipefail; printf "runtime_checks:\n - disable:\n - check_target_dir_on_unsupported_filesystem\n\nmapper:\n - part_mapper: kpartx\n" > /etc/kiwi.yml