First version of BCI based on Tumbleweed

OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/micro-image?expand=0&rev=1
This commit is contained in:
Dan Čermák 2022-04-27 12:18:20 +00:00 committed by Git OBS Bridge
commit 7fe5e942c7
6 changed files with 109 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

5
_service Normal file
View File

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

22
config.sh Normal file
View File

@ -0,0 +1,22 @@
#!/bin/bash
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: (c) 2022 SUSE LLC
set -euo pipefail
test -f /.kconfig && . /.kconfig
test -f /.profile && . /.profile
echo "Configure image: [$kiwi_iname]..."
#============================================
# Import repositories' keys if rpm is present
#--------------------------------------------
if command -v rpm > /dev/null; then
suseImportBuildKey
fi
exit 0

0
micro-image.changes Normal file
View File

58
micro-image.kiwi Normal file
View File

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- SPDX-License-Identifier: MIT -->
<!-- OBS-AddTag: bci/bci-micro:%OS_VERSION_ID_SP% bci/bci-micro:%OS_VERSION_ID_SP%.%RELEASE% bci/bci-micro:latest -->
<!-- OBS-Imagerepo: obsrepositories:/ -->
<image schemaversion="6.5" name="micro-image" xmlns:suse_label_helper="com.suse.label_helper">
<description type="system">
<author>SUSE LLC</author>
<contact>https://www.suse.com/</contact>
<specification>SLE BCI %OS_VERSION% Micro Container Image</specification>
</description>
<preferences>
<type image="docker">
<containerconfig
name="bci/bci-micro"
tag="%OS_VERSION_ID_SP%"
maintainer="SUSE LLC (https://www.suse.com/)"
additionaltags="%OS_VERSION_ID_SP%.%RELEASE%,latest">
<labels>
<!-- See https://en.opensuse.org/Building_derived_containers#Labels -->
<suse_label_helper:add_prefix prefix="com.suse.bci.micro">
<label name="org.opencontainers.image.title" value="SLE BCI %OS_VERSION% Micro Container Image"/>
<label name="org.opencontainers.image.description" value="A micro environment for containers based on the SLE Base Container Image."/>
<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.vendor" value="SUSE LLC"/>
<label name="org.opencontainers.image.url" value="https://www.suse.com/products/server/"/>
<label name="org.opensuse.reference" value="registry.suse.com/bci/bci-micro:%OS_VERSION_ID_SP%.%RELEASE%"/>
<label name="org.openbuildservice.disturl" value="%DISTURL%"/>
<label name="com.suse.supportlevel" value="techpreview"/>
<label name="com.suse.image-type" value="sle-bci"/>
<label name="com.suse.eula" value="sle-bci"/>
<label name="com.suse.release-stage" value="beta"/>
<label name="com.suse.lifecycle-url" value="https://www.suse.com/lifecycle"/>
</suse_label_helper:add_prefix>
</labels>
</containerconfig>
</type>
<version>15.Tumbleweed.0</version>
<packagemanager>zypper</packagemanager>
<rpm-check-signatures>false</rpm-check-signatures>
<rpm-excludedocs>true</rpm-excludedocs>
</preferences>
<repository type="rpm-md">
<source path="obsrepositories:/"/>
</repository>
<packages type="bootstrap">
<package name="bash"/>
<package name="ca-certificates-mozilla-prebuilt"/>
<package name="distribution-release"/>
</packages>
</image>