Skip to content

Commit

Permalink
Test build for #1602
Browse files Browse the repository at this point in the history
  • Loading branch information
SUSE Update Bot committed Sep 6, 2024
1 parent 7db7f64 commit 3366437
Show file tree
Hide file tree
Showing 20 changed files with 391 additions and 11 deletions.
7 changes: 7 additions & 0 deletions .obs/workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ staging_build:
source_project: home:defolos:BCI:CR:SLE-15-SP6
source_package: php-fpm8-image
target_project: home:defolos:BCI:CR:SLE-15-SP6:Staging
- branch_package:
source_project: home:defolos:BCI:CR:SLE-15-SP6
source_package: podman-image
target_project: home:defolos:BCI:CR:SLE-15-SP6:Staging
- branch_package:
source_project: home:defolos:BCI:CR:SLE-15-SP6
source_package: sac-postfix-image
Expand Down Expand Up @@ -317,6 +321,9 @@ refresh_devel_BCI:
- trigger_services:
project: devel:BCI:SLE-15-SP6
package: php-fpm8-image
- trigger_services:
project: devel:BCI:SLE-15-SP6
package: podman-image
- trigger_services:
project: devel:BCI:SLE-15-SP6
package: sac-postfix-image
Expand Down
4 changes: 3 additions & 1 deletion golang-oldstable-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#!BuildTag: bci/golang:oldstable-2.%RELEASE%
#!BuildTag: bci/golang:1.22
#!BuildTag: bci/golang:1.22-2.%RELEASE%
#!BuildTag: bci/golang:%%golang_version%%
#!BuildTag: bci/golang:%%golang_version%%-2.%RELEASE%
#!BuildName: bci-golang-oldstable
#!BuildVersion: 15.6.1.22.2
#!BuildRelease: 33
Expand All @@ -30,7 +32,7 @@ RUN set -euo pipefail; zypper -n in --no-recommends go1.22 go1.22-doc make curl
LABEL org.opencontainers.image.authors="SUSE LLC (https://www.suse.com/)"
LABEL org.opencontainers.image.title="SLE BCI Go 1.22 development"
LABEL org.opencontainers.image.description="Go 1.22 development container based on the SLE Base Container Image."
LABEL org.opencontainers.image.version="1.22"
LABEL org.opencontainers.image.version="%%golang_version%%"
LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.vendor="SUSE LLC"
Expand Down
4 changes: 3 additions & 1 deletion golang-oldstable-openssl-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#!BuildTag: bci/golang:oldstable-openssl-%RELEASE%
#!BuildTag: bci/golang:1.20-openssl
#!BuildTag: bci/golang:1.20-openssl-%RELEASE%
#!BuildTag: bci/golang:%%golang_version%%
#!BuildTag: bci/golang:%%golang_version%%-%RELEASE%
#!BuildName: bci-golang-oldstable-openssl
#!BuildVersion: 15.6
#!BuildRelease: 33
Expand All @@ -30,7 +32,7 @@ RUN set -euo pipefail; zypper -n in --no-recommends go1.20-openssl go1.20-openss
LABEL org.opencontainers.image.authors="SUSE LLC (https://www.suse.com/)"
LABEL org.opencontainers.image.title="SLE BCI Go 1.20-openssl development"
LABEL org.opencontainers.image.description="Go 1.20-openssl development container based on the SLE Base Container Image."
LABEL org.opencontainers.image.version="1.20-openssl"
LABEL org.opencontainers.image.version="%%golang_version%%"
LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.vendor="SUSE LLC"
Expand Down
4 changes: 3 additions & 1 deletion golang-stable-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#!BuildTag: bci/golang:stable-1.%RELEASE%
#!BuildTag: bci/golang:1.23
#!BuildTag: bci/golang:1.23-1.%RELEASE%
#!BuildTag: bci/golang:%%golang_version%%
#!BuildTag: bci/golang:%%golang_version%%-1.%RELEASE%
#!BuildTag: bci/golang:latest
#!BuildName: bci-golang-stable
#!BuildVersion: 15.6.1.23.1
Expand All @@ -31,7 +33,7 @@ RUN set -euo pipefail; zypper -n in --no-recommends go1.23 go1.23-doc make curl
LABEL org.opencontainers.image.authors="SUSE LLC (https://www.suse.com/)"
LABEL org.opencontainers.image.title="SLE BCI Go 1.23 development"
LABEL org.opencontainers.image.description="Go 1.23 development container based on the SLE Base Container Image."
LABEL org.opencontainers.image.version="1.23"
LABEL org.opencontainers.image.version="%%golang_version%%"
LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.vendor="SUSE LLC"
Expand Down
4 changes: 3 additions & 1 deletion golang-stable-openssl-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#!BuildTag: bci/golang:stable-openssl-%RELEASE%
#!BuildTag: bci/golang:1.21-openssl
#!BuildTag: bci/golang:1.21-openssl-%RELEASE%
#!BuildTag: bci/golang:%%golang_version%%
#!BuildTag: bci/golang:%%golang_version%%-%RELEASE%
#!BuildTag: bci/golang:latest
#!BuildName: bci-golang-stable-openssl
#!BuildVersion: 15.6
Expand All @@ -31,7 +33,7 @@ RUN set -euo pipefail; zypper -n in --no-recommends go1.21-openssl go1.21-openss
LABEL org.opencontainers.image.authors="SUSE LLC (https://www.suse.com/)"
LABEL org.opencontainers.image.title="SLE BCI Go 1.21-openssl development"
LABEL org.opencontainers.image.description="Go 1.21-openssl development container based on the SLE Base Container Image."
LABEL org.opencontainers.image.version="1.21-openssl"
LABEL org.opencontainers.image.version="%%golang_version%%"
LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.vendor="SUSE LLC"
Expand Down
2 changes: 1 addition & 1 deletion kiwi-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#!BuildTag: bci/kiwi:9.24.43-%RELEASE%
#!BuildTag: bci/kiwi:latest
#!BuildName: bci-kiwi-9
#!BuildVersion: 15.6.9.24.43
#!BuildVersion: 15.6.9
FROM bci/bci-base:15.6

RUN set -euo pipefail; zypper -n in --no-recommends checkmedia dracut-kiwi-oem-repart enchant-devel gcc glibc-devel iproute2 java-21-openjdk-headless jing kiwi-systemdeps-filesystems kpartx libxml2-devel lvm2 make netcat-openbsd python3-devel python3-kiwi python3-pip tack timezone xorriso xz; zypper -n clean; rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2}
Expand Down
6 changes: 5 additions & 1 deletion nodejs-20-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@

#!BuildTag: bci/nodejs:20
#!BuildTag: bci/nodejs:20-%RELEASE%
#!BuildTag: bci/nodejs:%%nodejs_version%%
#!BuildTag: bci/nodejs:%%nodejs_version%%-%RELEASE%
#!BuildTag: bci/nodejs:latest
#!BuildTag: bci/node:20
#!BuildTag: bci/node:20-%RELEASE%
#!BuildTag: bci/node:%%nodejs_version%%
#!BuildTag: bci/node:%%nodejs_version%%-%RELEASE%
#!BuildTag: bci/node:latest
#!BuildName: bci-nodejs-20
#!BuildVersion: 15.6.20
Expand All @@ -32,7 +36,7 @@ RUN set -euo pipefail; zypper -n in --no-recommends nodejs20 npm20 update-altern
LABEL org.opencontainers.image.authors="SUSE LLC (https://www.suse.com/)"
LABEL org.opencontainers.image.title="SLE BCI Node.js 20 development"
LABEL org.opencontainers.image.description="Node.js 20 development container based on the SLE Base Container Image."
LABEL org.opencontainers.image.version="20"
LABEL org.opencontainers.image.version="%%nodejs_version%%"
LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.vendor="SUSE LLC"
Expand Down
5 changes: 5 additions & 0 deletions nodejs-20-image/_service
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<services>
<service mode="buildtime" name="docker_label_helper"/>
<service mode="buildtime" name="kiwi_metainfo_helper"/>
<service name="replace_using_package_version" mode="buildtime">
<param name="file">Dockerfile</param>
<param name="regex">%%nodejs_version%%</param>
<param name="package">nodejs20</param>
</service>
</services>
82 changes: 82 additions & 0 deletions podman-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# SPDX-License-Identifier: Apache-2.0

# Copyright (c) 2024 SUSE LLC

# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon.

# The content of THIS FILE IS AUTOGENERATED and should not be manually modified.
# It is maintained by the BCI team and generated by
# https://github.com/SUSE/BCI-dockerfile-generator

# Please submit bugfixes or comments via https://bugs.opensuse.org/
# You can contact the BCI team via https://github.com/SUSE/bci/discussions


#!BuildTag: suse/podman:%%podman_version%%
#!BuildTag: suse/podman:%%podman_version%%-%RELEASE%
#!BuildTag: suse/podman:latest
#!BuildName: suse-podman-%%podman_version%%
#!BuildVersion: 15.6
#!BuildRelease: 35
FROM suse/sle15:15.6

RUN set -euo pipefail; zypper -n in --no-recommends podman fuse-overlayfs libcontainers-common libcontainers-default-policy libcontainers-sles-mounts; zypper -n clean; rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2}

# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=com.suse.application.podman
LABEL org.opencontainers.image.authors="SUSE LLC (https://www.suse.com/)"
LABEL org.opencontainers.image.title="SLE Podman"
LABEL org.opencontainers.image.description="Podman container based on the SLE Base Container Image."
LABEL org.opencontainers.image.version="%%podman_version%%"
LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.vendor="SUSE LLC"
LABEL org.opencontainers.image.source="%SOURCEURL%"
LABEL org.opencontainers.image.ref.name="%%podman_version%%-%RELEASE%"
LABEL org.opensuse.reference="registry.suse.com/suse/podman:%%podman_version%%-%RELEASE%"
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL com.suse.supportlevel="techpreview"
LABEL com.suse.eula="sle-eula"
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15"
LABEL com.suse.release-stage="released"
# endlabelprefix
LABEL io.artifacthub.package.readme-url="%SOURCEURL%/README.md"
LABEL io.artifacthub.package.logo-url="https://raw.githubusercontent.com/containers/common/main/logos/podman-logo-full-vert.png"
RUN useradd -U podman && \
echo -e "podman:1:999\npodman:1001:64535" > /etc/subuid && \
echo -e "podman:1:999\npodman:1001:64535" > /etc/subgid

COPY containers.conf /etc/containers/containers.conf
COPY podman-containers.conf /home/podman/.config/containers/containers.conf

RUN mkdir -p /home/podman/.local/share/containers && \
chown podman:podman -R /home/podman && \
chmod 0644 /etc/containers/containers.conf


# Copy & modify the defaults to provide reference if runtime changes needed.
# Changes here are required for running with fuse-overlay storage inside container.
RUN sed -i -e 's|^#mount_program|mount_program|g' \
-e '/additionalimage.*/a "/var/lib/shared",' \
-e 's|^mountopt[[:space:]]*=.*$|mountopt = "nodev,fsync=0"|g' \
/etc/containers/storage.conf

VOLUME /var/lib/containers
VOLUME /home/podman/.local/share/containers

RUN mkdir -p /var/lib/shared/overlay-images \
/var/lib/shared/overlay-layers \
/var/lib/shared/vfs-images \
/var/lib/shared/vfs-layers && \
touch /var/lib/shared/overlay-images/images.lock && \
touch /var/lib/shared/overlay-layers/layers.lock && \
touch /var/lib/shared/vfs-images/images.lock && \
touch /var/lib/shared/vfs-layers/layers.lock

# fix capabilities of newuidmap & newgidmap
RUN permctl --system

ENV _CONTAINERS_USERNS_CONFIGURED="" \
BUILDAH_ISOLATION=chroot
Loading

0 comments on commit 3366437

Please sign in to comment.