Skip to content

Commit ba5fc24

Browse files
author
SUSE Update Bot
committed
Test build for #1602
1 parent b799193 commit ba5fc24

7 files changed

Lines changed: 125 additions & 0 deletions

File tree

.obs/workflows.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ staging_build:
153153
source_project: home:defolos:BCI:CR:Tumbleweed
154154
source_package: php-fpm8-image
155155
target_project: home:defolos:BCI:CR:Tumbleweed:Staging
156+
- branch_package:
157+
source_project: home:defolos:BCI:CR:Tumbleweed
158+
source_package: podman-image
159+
target_project: home:defolos:BCI:CR:Tumbleweed:Staging
156160
- branch_package:
157161
source_project: home:defolos:BCI:CR:Tumbleweed
158162
source_package: postfix-image
@@ -352,6 +356,9 @@ refresh_devel_BCI:
352356
- trigger_services:
353357
project: devel:BCI:Tumbleweed
354358
package: php-fpm8-image
359+
- trigger_services:
360+
project: devel:BCI:Tumbleweed
361+
package: podman-image
355362
- trigger_services:
356363
project: devel:BCI:Tumbleweed
357364
package: postfix-image

podman-image/Dockerfile

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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: opensuse/podman:%%podman_version%%
18+
#!BuildTag: opensuse/podman:%%podman_version%%-%RELEASE%
19+
#!BuildTag: opensuse/podman:latest
20+
21+
FROM opensuse/tumbleweed:latest
22+
23+
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}
24+
25+
# Define labels according to https://en.opensuse.org/Building_derived_containers
26+
# labelprefix=org.opensuse.application.podman
27+
LABEL org.opencontainers.image.authors="openSUSE (https://www.opensuse.org/)"
28+
LABEL org.opencontainers.image.title="openSUSE Tumbleweed Podman"
29+
LABEL org.opencontainers.image.description="Podman container based on the openSUSE Tumbleweed Base Container Image."
30+
LABEL org.opencontainers.image.version="%%podman_version%%"
31+
LABEL org.opencontainers.image.url="https://www.opensuse.org"
32+
LABEL org.opencontainers.image.created="%BUILDTIME%"
33+
LABEL org.opencontainers.image.vendor="openSUSE Project"
34+
LABEL org.opencontainers.image.source="%SOURCEURL%"
35+
LABEL org.opencontainers.image.ref.name="%%podman_version%%-%RELEASE%"
36+
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/podman:%%podman_version%%-%RELEASE%"
37+
LABEL org.openbuildservice.disturl="%DISTURL%"
38+
LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime#openSUSE_BCI"
39+
LABEL org.opensuse.release-stage="released"
40+
# endlabelprefix
41+
LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/SUSE/BCI-dockerfile-generator/Tumbleweed/podman-image/README.md"
42+
RUN useradd podman && \
43+
echo -e "podman:1:999\npodman:1001:64535" > /etc/subuid && \
44+
echo -e "podman:1:999\npodman:1001:64535" > /etc/subgid
45+
46+
COPY containers.conf /etc/containers/containers.conf
47+
COPY podman-containers.conf /home/podman/.config/containers/containers.conf
48+
49+
RUN mkdir -p /home/podman/.local/share/containers && \
50+
chown podman:podman -R /home/podman && \
51+
chmod 0644 /etc/containers/containers.conf
52+
53+
# Copy & modify the defaults to provide reference if runtime changes needed.
54+
# Changes here are required for running with fuse-overlay storage inside container.
55+
RUN sed -e 's|^#mount_program|mount_program|g' \
56+
-e '/additionalimage.*/a "/var/lib/shared",' \
57+
-e 's|^mountopt[[:space:]]*=.*$|mountopt = "nodev,fsync=0"|g' \
58+
/usr/share/containers/storage.conf \
59+
> /etc/containers/storage.conf
60+
61+
VOLUME /var/lib/containers
62+
VOLUME /home/podman/.local/share/containers
63+
64+
RUN mkdir -p /var/lib/shared/overlay-images \
65+
/var/lib/shared/overlay-layers \
66+
/var/lib/shared/vfs-images \
67+
/var/lib/shared/vfs-layers && \
68+
touch /var/lib/shared/overlay-images/images.lock && \
69+
touch /var/lib/shared/overlay-layers/layers.lock && \
70+
touch /var/lib/shared/vfs-images/images.lock && \
71+
touch /var/lib/shared/vfs-layers/layers.lock
72+
73+
ENV _CONTAINERS_USERNS_CONFIGURED="" \
74+
BUILDAH_ISOLATION=chroot

podman-image/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# The openSUSE Tumbleweed Podman container image
2+
![Redistributable](https://img.shields.io/badge/Redistributable-Yes-green)
3+
4+
Podman container based on the openSUSE Tumbleweed Base Container Image.
5+
6+
## Licensing
7+
8+
`SPDX-License-Identifier: Apache-2.0`
9+
10+
This documentation and the build recipe are licensed as Apache-2.0.
11+
The container itself contains various software components under various open source licenses listed in the associated
12+
Software Bill of Materials (SBOM).
13+
14+
This image is based on [openSUSE Tumbleweed](https://get.opensuse.org/tumbleweed/).

podman-image/_service

Lines changed: 9 additions & 0 deletions
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

Lines changed: 12 additions & 0 deletions
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"
Lines changed: 5 additions & 0 deletions
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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-------------------------------------------------------------------
2+
Thu Sep 05 14:45:04 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
3+
4+
- First version of the Podman BCI

0 commit comments

Comments
 (0)