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: bci/kiwi:%%kiwi_version%%-%RELEASE%
#!BuildTag: bci/kiwi:%%kiwi_version%%
#!BuildTag: bci/kiwi:9.24
#!BuildTag: bci/kiwi:9
#!BuildTag: bci/kiwi:latest
#!BuildName: bci-kiwi
#!BuildVersion: 15.7.9.24
#!BuildRelease: 15
FROM registry.suse.com/bci/bci-base:15.7
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 sles-release curl findutils gawk git-core procps
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=com.suse.bci.kiwi
LABEL org.opencontainers.image.authors="https://github.com/SUSE/bci/discussions"
LABEL org.opencontainers.image.title="SLE BCI KIWI Appliance Builder 9.24 (kiwi)"
LABEL org.opencontainers.image.description="KIWI Appliance Builder 9.24 (kiwi) container based on the SLE 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.suse.com/products/base-container-images/"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.vendor="SUSE LLC"
LABEL org.opencontainers.image.source="%SOURCEURL%"
LABEL org.opencontainers.image.ref.name="%%kiwi_version%%-%RELEASE%"
LABEL org.opensuse.reference="registry.suse.com/bci/kiwi:%%kiwi_version%%-%RELEASE%"
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL com.suse.supportlevel="techpreview"
LABEL com.suse.eula="sle-bci"
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15"
LABEL com.suse.release-stage="released"
# endlabelprefix
LABEL org.opencontainers.image.base.name="%BASE_REFNAME%"
LABEL org.opencontainers.image.base.digest="%BASE_DIGEST%"
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)" = "9.24" ]