Skip to content

Commit 63848b1

Browse files
author
SUSE Update Bot
committed
Test build for #1602
1 parent 3ca0f03 commit 63848b1

File tree

7 files changed

+132
-0
lines changed

7 files changed

+132
-0
lines changed

.obs/workflows.yml

+7
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ staging_build:
133133
source_project: home:defolos:BCI:CR:SLE-15-SP6
134134
source_package: php-fpm8-image
135135
target_project: home:defolos:BCI:CR:SLE-15-SP6:Staging
136+
- branch_package:
137+
source_project: home:defolos:BCI:CR:SLE-15-SP6
138+
source_package: podman-image
139+
target_project: home:defolos:BCI:CR:SLE-15-SP6:Staging
136140
- branch_package:
137141
source_project: home:defolos:BCI:CR:SLE-15-SP6
138142
source_package: sac-postfix-image
@@ -317,6 +321,9 @@ refresh_devel_BCI:
317321
- trigger_services:
318322
project: devel:BCI:SLE-15-SP6
319323
package: php-fpm8-image
324+
- trigger_services:
325+
project: devel:BCI:SLE-15-SP6
326+
package: podman-image
320327
- trigger_services:
321328
project: devel:BCI:SLE-15-SP6
322329
package: sac-postfix-image

podman-image/Dockerfile

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
# Copyright (c) 2024 SUSE LLC
4+
5+
# All modifications and additions to the file contributed by third parties
6+
# remain the property of their copyright owners, unless otherwise agreed
7+
# upon.
8+
9+
# The content of THIS FILE IS AUTOGENERATED and should not be manually modified.
10+
# It is maintained by the BCI team and generated by
11+
# https://github.com/SUSE/BCI-dockerfile-generator
12+
13+
# Please submit bugfixes or comments via https://bugs.opensuse.org/
14+
# You can contact the BCI team via https://github.com/SUSE/bci/discussions
15+
16+
17+
#!BuildTag: suse/podman:%%podman_version%%
18+
#!BuildTag: suse/podman:%%podman_version%%-%RELEASE%
19+
#!BuildTag: suse/podman:latest
20+
#!BuildName: suse-podman-%%podman_version%%
21+
#!BuildVersion: 15.6
22+
#!BuildRelease: 35
23+
FROM suse/sle15:15.6
24+
25+
RUN set -euo pipefail; zypper -n in --no-recommends podman fuse-overlayfs; zypper -n clean; rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2}
26+
27+
# Define labels according to https://en.opensuse.org/Building_derived_containers
28+
# labelprefix=com.suse.application.podman
29+
LABEL org.opencontainers.image.authors="SUSE LLC (https://www.suse.com/)"
30+
LABEL org.opencontainers.image.title="SLE Podman"
31+
LABEL org.opencontainers.image.description="Podman container based on the SLE Base Container Image."
32+
LABEL org.opencontainers.image.version="%%podman_version%%"
33+
LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/"
34+
LABEL org.opencontainers.image.created="%BUILDTIME%"
35+
LABEL org.opencontainers.image.vendor="SUSE LLC"
36+
LABEL org.opencontainers.image.source="%SOURCEURL%"
37+
LABEL org.opencontainers.image.ref.name="%%podman_version%%-%RELEASE%"
38+
LABEL org.opensuse.reference="registry.suse.com/suse/podman:%%podman_version%%-%RELEASE%"
39+
LABEL org.openbuildservice.disturl="%DISTURL%"
40+
LABEL com.suse.supportlevel="techpreview"
41+
LABEL com.suse.eula="sle-eula"
42+
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15"
43+
LABEL com.suse.release-stage="released"
44+
# endlabelprefix
45+
LABEL io.artifacthub.package.readme-url="%SOURCEURL%/README.md"
46+
RUN useradd podman && \
47+
echo -e "podman:1:999\npodman:1001:64535" > /etc/subuid && \
48+
echo -e "podman:1:999\npodman:1001:64535" > /etc/subgid
49+
50+
COPY containers.conf /etc/containers/containers.conf
51+
COPY podman-containers.conf /home/podman/.config/containers/containers.conf
52+
53+
RUN mkdir -p /home/podman/.local/share/containers && \
54+
chown podman:podman -R /home/podman && \
55+
chmod 0644 /etc/containers/containers.conf
56+
57+
# Copy & modify the defaults to provide reference if runtime changes needed.
58+
# Changes here are required for running with fuse-overlay storage inside container.
59+
RUN sed -e 's|^#mount_program|mount_program|g' \
60+
-e '/additionalimage.*/a "/var/lib/shared",' \
61+
-e 's|^mountopt[[:space:]]*=.*$|mountopt = "nodev,fsync=0"|g' \
62+
/usr/share/containers/storage.conf \
63+
> /etc/containers/storage.conf
64+
65+
VOLUME /var/lib/containers
66+
VOLUME /home/podman/.local/share/containers
67+
68+
RUN mkdir -p /var/lib/shared/overlay-images \
69+
/var/lib/shared/overlay-layers \
70+
/var/lib/shared/vfs-images \
71+
/var/lib/shared/vfs-layers && \
72+
touch /var/lib/shared/overlay-images/images.lock && \
73+
touch /var/lib/shared/overlay-layers/layers.lock && \
74+
touch /var/lib/shared/vfs-images/images.lock && \
75+
touch /var/lib/shared/vfs-layers/layers.lock
76+
77+
ENV _CONTAINERS_USERNS_CONFIGURED="" \
78+
BUILDAH_ISOLATION=chroot

podman-image/README.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# The SLE Podman container image
2+
![Support Level](https://img.shields.io/badge/Support_Level-techpreview-blue)[![SLSA](https://img.shields.io/badge/SLSA_(v1.0)-Build_L3-Green)](https://documentation.suse.com/sbp/server-linux/html/SBP-SLSA4/)
3+
[![Provenance: Available](https://img.shields.io/badge/Provenance-Available-Green)](https://documentation.suse.com/container/all/html/Container-guide/index.html#container-verify)
4+
5+
Podman container based on the SLE Base Container Image.
6+
7+
## Licensing
8+
9+
`SPDX-License-Identifier: Apache-2.0`
10+
11+
This documentation and the build recipe are licensed as Apache-2.0.
12+
The container itself contains various software components under various open source licenses listed in the associated
13+
Software Bill of Materials (SBOM).
14+
15+
This image is a tech preview. Do not use it for production.
16+
Your feedback is welcome.
17+
Please report any issues to the [SUSE Bugzilla](https://bugzilla.suse.com/enter_bug.cgi?product=SUSE%20Linux%20Enterprise%20Base%20Container%20Images).

podman-image/_service

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<services>
2+
<service mode="buildtime" name="docker_label_helper"/>
3+
<service mode="buildtime" name="kiwi_metainfo_helper"/>
4+
<service name="replace_using_package_version" mode="buildtime">
5+
<param name="file">Dockerfile</param>
6+
<param name="regex">%%podman_version%%</param>
7+
<param name="package">podman</param>
8+
</service>
9+
</services>

podman-image/containers.conf

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[containers]
2+
netns="host"
3+
userns="host"
4+
ipcns="host"
5+
utsns="host"
6+
cgroupns="host"
7+
cgroups="disabled"
8+
log_driver = "k8s-file"
9+
[engine]
10+
cgroup_manager = "cgroupfs"
11+
events_logger="file"
12+
runtime="crun"

podman-image/podman-containers.conf

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[containers]
2+
volumes = [
3+
"/proc:/proc",
4+
]
5+
default_sysctls = []

podman-image/podman-image.changes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-------------------------------------------------------------------
2+
Thu Sep 05 14:45:05 UTC 2024 - SUSE Update Bot <[email protected]>
3+
4+
- First version of the Podman BCI

0 commit comments

Comments
 (0)