From e8665c22dbc6eec5ea43104c5acf5c85bb3d00c62985c5d5b48f050e302c8803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Wed, 27 Apr 2022 12:18:24 +0000 Subject: [PATCH] First version of BCI based on Tumbleweed OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/busybox-image?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++ .gitignore | 1 + _service | 5 ++++ busybox-image.changes | 0 busybox-image.kiwi | 59 +++++++++++++++++++++++++++++++++++++++++++ config.sh | 21 +++++++++++++++ 6 files changed, 109 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 busybox-image.changes create mode 100644 busybox-image.kiwi create mode 100644 config.sh diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..f5ca758 --- /dev/null +++ b/_service @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/busybox-image.changes b/busybox-image.changes new file mode 100644 index 0000000..473a0f4 diff --git a/busybox-image.kiwi b/busybox-image.kiwi new file mode 100644 index 0000000..b652e8e --- /dev/null +++ b/busybox-image.kiwi @@ -0,0 +1,59 @@ + + + + + + + + + SUSE LLC + https://www.suse.com/ + SLE BCI Busybox Container Image + + + + + + + + + + + + + + + 15.Tumbleweed.0 + zypper + false + true + + + + + + + + + + + + \ No newline at end of file diff --git a/config.sh b/config.sh new file mode 100644 index 0000000..9c14ce7 --- /dev/null +++ b/config.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# 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 + +sed -i 's|/bin/bash|/bin/sh|' /etc/passwd + +exit 0