Skip to content

Commit e0c6e12

Browse files
author
SUSE Update Bot
committed
Test build for #1454
1 parent 8f6dad2 commit e0c6e12

File tree

7 files changed

+253
-0
lines changed

7 files changed

+253
-0
lines changed

.obs/workflows.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ staging_build:
1313
source_project: home:defolos:BCI:CR:SLE-15-SP6
1414
source_package: sac-apache-tomcat-10-java21-image
1515
target_project: home:defolos:BCI:CR:SLE-15-SP6:Staging
16+
- branch_package:
17+
source_project: home:defolos:BCI:CR:SLE-15-SP6
18+
source_package: sles15-image
19+
target_project: home:defolos:BCI:CR:SLE-15-SP6:Staging
1620
- branch_package:
1721
source_project: home:defolos:BCI:CR:SLE-15-SP6
1822
source_package: base-fips-image
@@ -219,6 +223,9 @@ refresh_devel_BCI:
219223
- trigger_services:
220224
project: devel:BCI:SLE-15-SP6
221225
package: sac-apache-tomcat-10-java21-image
226+
- trigger_services:
227+
project: devel:BCI:SLE-15-SP6
228+
package: sles15-image
222229
- trigger_services:
223230
project: devel:BCI:SLE-15-SP6
224231
package: base-fips-image

sles15-image/LICENSE

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Permission is hereby granted, free of charge, to any person obtaining a copy
2+
of this software and associated documentation files (the "Software"), to deal
3+
in the Software without restriction, including without limitation the rights
4+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5+
copies of the Software, and to permit persons to whom the Software is
6+
furnished to do so, subject to the following conditions:
7+
8+
The above copyright notice and this permission notice shall be included in
9+
all copies or substantial portions of the Software.
10+
11+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17+
SOFTWARE.

sles15-image/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# SLE BCI 15 SP6 Base Container Image
2+
![Redistributable](https://img.shields.io/badge/Redistributable-Yes-green)
3+
[![SLSA](https://img.shields.io/badge/SLSA_(v0.1)-Level_4-Green)](https://documentation.suse.com/sbp/server-linux/html/SBP-SLSA4/)
4+
[![Provenance: Available](https://img.shields.io/badge/Provenance-Available-Green)](https://documentation.suse.com/container/all/html/Container-guide/index.html#container-verify)
5+
6+
## Description
7+
8+
SUSE Linux Enterprise Base Container Images (SLE BCI) provide truly open,
9+
flexible, and secure container images and application development tools. The
10+
images consist of container environments based on SUSE Linux Enterprise and
11+
designed to be a secure base for any containerized workload.
12+
13+
SLE BCI is freely available, re-distributable, and supported across many
14+
different environments. These templates and tools address modern, containerized
15+
application development and CI/CD application containerization. They can be
16+
used immediately by developers and integrators without the “lock-in” imposed by
17+
other offerings.
18+
19+
SLE BCI inherits industry-leading security and compliance from SUSE Linux
20+
within your container build process. The container images are designed to be a
21+
secure base for any application workload. SUSE ensures that compliance
22+
standards are applied consistently and continuously improves security-related
23+
capabilities.
24+
25+
SLE BCI is lightweight and easy to adopt, with the ability to run with any
26+
Linux OS. Avoid lock-in imposed by other vendors and get exactly what you need,
27+
fast. SLE BCI delivers a flexible developer experience that accounts for,
28+
integrates with, and supports language-native tools and workflows.
29+
30+
## Licensing
31+
32+
`SPDX-License-Identifier: MIT`
33+
34+
This documentation and the build recipe are licensed as MIT.
35+
The container itself contains various software components under various open source licenses listed in the associated
36+
Software Bill of Materials (SBOM).
37+
38+
This image is based on [SLE BCI](https://opensource.suse.com/bci/), a stable and redistributable foundation for software innovation. SLE BCI is enterprise-ready, and it comes with an option for support.
39+
40+
See the [SLE BCI EULA](https://www.suse.com/licensing/eula/#bci) for further information.

sles15-image/_service

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<services>
2+
<service mode="buildtime" name="kiwi_label_helper"/>
3+
<service mode="buildtime" name="kiwi_metainfo_helper"/>
4+
</services>

sles15-image/config.sh

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
#!/bin/bash
2+
# SPDX-License-Identifier: MIT
3+
# SPDX-FileCopyrightText: (c) 2022-2024 SUSE LLC
4+
5+
set -euo pipefail
6+
7+
test -f /.kconfig && . /.kconfig
8+
test -f /.profile && . /.profile
9+
10+
echo "Configure image: [$kiwi_iname]..."
11+
12+
#============================================
13+
# Import repositories' keys if rpm is present
14+
#--------------------------------------------
15+
if command -v rpm > /dev/null; then
16+
suseImportBuildKey
17+
fi
18+
19+
20+
echo "Configure image: [$kiwi_iname]..."
21+
22+
#======================================
23+
# Setup baseproduct link
24+
#--------------------------------------
25+
suseSetupProduct
26+
27+
28+
# don't have duplicate licenses of the same type
29+
jdupes -1 -L -r /usr/share/licenses
30+
31+
zypper --non-interactive rm -u jdupes
32+
33+
34+
# Not needed, but neither rpm nor libzypp handle rpmlib(X-CheckUnifiedSystemdir) yet
35+
# which would avoid it being installed by filesystem package
36+
rpm -q compat-usrmerge-tools && rpm -e compat-usrmerge-tools
37+
38+
#======================================
39+
# Disable recommends
40+
#--------------------------------------
41+
sed -i 's/.*solver.onlyRequires.*/solver.onlyRequires = true/g' /etc/zypp/zypp.conf
42+
43+
#======================================
44+
# Exclude docs installation
45+
#--------------------------------------
46+
sed -i 's/.*rpm.install.excludedocs.*/rpm.install.excludedocs = yes/g' /etc/zypp/zypp.conf
47+
48+
#======================================
49+
# Configure SLE BCI repositories
50+
#--------------------------------------
51+
zypper -n ar --refresh --gpgcheck --priority 100 --enable 'https://updates.suse.com/SUSE/Products/SLE-BCI/$releasever_major-SP$releasever_minor/$basearch/product/' SLE_BCI
52+
zypper -n ar --refresh --gpgcheck --priority 100 --disable 'https://updates.suse.com/SUSE/Products/SLE-BCI/$releasever_major-SP$releasever_minor/$basearch/product_debug/' SLE_BCI_debug
53+
zypper -n ar --refresh --gpgcheck --priority 100 --disable 'https://updates.suse.com/SUSE/Products/SLE-BCI/$releasever_major-SP$releasever_minor/$basearch/product_source/' SLE_BCI_source
54+
55+
#======================================
56+
# Remove zypp uuid (bsc#1098535)
57+
#--------------------------------------
58+
rm -f /var/lib/zypp/AnonymousUniqueId
59+
60+
# Remove the entire zypper cache content (not the dir itself, owned by libzypp)
61+
rm -rf /var/cache/zypp/*
62+
63+
#==========================================
64+
# Hack! The go container management tools can't handle sparse files:
65+
# https://github.com/golang/go/issues/13548
66+
# If lastlog doesn't exist, useradd doesn't attempt to reserve space,
67+
# also in derived containers.
68+
#------------------------------------------
69+
rm -f /var/log/lastlog
70+
71+
#======================================
72+
# Remove locale files
73+
#--------------------------------------
74+
(shopt -s globstar; rm -f /usr/share/locale/**/*.mo)
75+
76+
#=======================================
77+
# Clean up after zypper if it is present
78+
#---------------------------------------
79+
if command -v zypper > /dev/null; then
80+
zypper -n clean
81+
fi
82+
83+
rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2}
84+
85+
exit 0

sles15-image/sles15-image.changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-------------------------------------------------------------------
2+
Thu Jul 25 10:09:04 UTC 2024 - SUSE Update Bot <[email protected]>
3+
4+
- First version of the Base BCI

sles15-image/sles15-image.kiwi

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- SPDX-License-Identifier: MIT -->
3+
<!--
4+
Copyright (c) 2024 SUSE LLC
5+
6+
All modifications and additions to the file contributed by third parties
7+
remain the property of their copyright owners, unless otherwise agreed
8+
upon.
9+
10+
The content of THIS FILE IS AUTOGENERATED and should not be manually modified.
11+
It is maintained by the BCI team and generated by
12+
https://github.com/SUSE/BCI-dockerfile-generator
13+
14+
Please submit bugfixes or comments via https://bugs.opensuse.org/
15+
You can contact the BCI team via https://github.com/SUSE/bci/discussions
16+
-->
17+
<!-- OBS-AddTag: suse/sle15:%OS_VERSION_ID_SP% suse/sle15:%OS_VERSION_ID_SP%.%RELEASE% bci/bci-base:%OS_VERSION_ID_SP% bci/bci-base:%OS_VERSION_ID_SP%.%RELEASE% -->
18+
<!-- OBS-ExclusiveArch: aarch64 x86_64 ppc64le s390x -->
19+
<!-- OBS-IgnorePackage: rpm -->
20+
<!-- OBS-Imagerepo: obsrepositories:/ -->
21+
22+
<image schemaversion="7.4" name="base-image" xmlns:suse_label_helper="com.suse.label_helper">
23+
<description type="system">
24+
<author>SUSE LLC</author>
25+
<contact>https://www.suse.com/</contact>
26+
<specification>SLE BCI %OS_VERSION_NO_DASH% Base Container Image</specification>
27+
</description>
28+
<preferences>
29+
<type image="docker">
30+
<containerconfig
31+
name="suse/sle15"
32+
tag="%OS_VERSION_ID_SP%"
33+
additionaltags="%OS_VERSION_ID_SP%.%RELEASE%"
34+
maintainer="SUSE LLC (https://www.suse.com/)">
35+
<labels>
36+
<suse_label_helper:add_prefix prefix="com.suse.bci.base">
37+
<label name="org.opencontainers.image.title" value="SLE BCI %OS_VERSION_NO_DASH% Base"/>
38+
<label name="org.opencontainers.image.description" value="Image for containers based on %OS_PRETTY_NAME%."/>
39+
<label name="org.opencontainers.image.version" value="%OS_VERSION_ID_SP%.%RELEASE%"/>
40+
<label name="org.opencontainers.image.created" value="%BUILDTIME%"/>
41+
<label name="org.opencontainers.image.vendor" value="SUSE LLC"/>
42+
<label name="org.opencontainers.image.source" value="%SOURCEURL%"/>
43+
<label name="org.opencontainers.image.url" value="https://www.suse.com/products/base-container-images/"/>
44+
<label name="org.opensuse.reference" value="registry.suse.com/bci/bci-base:%OS_VERSION_ID_SP%.%RELEASE%"/>
45+
<label name="org.openbuildservice.disturl" value="%DISTURL%"/>
46+
<label name="com.suse.supportlevel" value="l3"/>
47+
<label name="com.suse.eula" value="sle-bci"/>
48+
<label name="com.suse.release-stage" value="released"/>
49+
<label name="com.suse.lifecycle-url" value="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15"/>
50+
</suse_label_helper:add_prefix>
51+
<label name="io.artifacthub.package.readme-url" value="%SOURCEURL%/README.md"/>
52+
<label name="io.artifacthub.package.logo-url" value="https://opensource.suse.com/bci/SLE_BCI_logomark_green.svg"/>
53+
</labels>
54+
</containerconfig>
55+
</type>
56+
<version>15.6.0</version>
57+
<packagemanager>zypper</packagemanager>
58+
<rpm-check-signatures>false</rpm-check-signatures>
59+
<rpm-excludedocs>true</rpm-excludedocs>
60+
</preferences>
61+
<repository type="rpm-md">
62+
<source path="obsrepositories:/"/>
63+
</repository>
64+
<packages type="bootstrap">
65+
<package name="aaa_base"/>
66+
<package name="cracklib-dict-small"/>
67+
<package name="filesystem"/>
68+
<package name="jdupes"/>
69+
<package name="kubic-locale-archive"/>
70+
<package name="patterns-base-fips"/>
71+
<package name="patterns-base-minimal_base"/>
72+
<package name="rpm-ndb"/>
73+
<package name="shadow"/>
74+
<package name="sles-release"/>
75+
<package name="zypper"/>
76+
</packages>
77+
<packages type="image">
78+
<package name="bash"/>
79+
<package name="ca-certificates-mozilla"/>
80+
<package name="coreutils"/>
81+
<package name="curl"/>
82+
<package name="gzip"/>
83+
<package name="netcfg"/>
84+
<package name="openssl"/>
85+
<package name="shadow"/>
86+
<package name="tar"/>
87+
<package name="timezone"/>
88+
<package name="container-suseconnect"/>
89+
<package name="skelcd-EULA-bci"/>
90+
<package name="sle-module-basesystem-release"/>
91+
<package name="sle-module-server-applications-release"/>
92+
<package name="sle-module-python3-release"/>
93+
<package name="suse-build-key"/>
94+
</packages>
95+
96+
</image>

0 commit comments

Comments
 (0)