-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
SUSE Update Bot
committed
Sep 6, 2024
1 parent
7db7f64
commit 3366437
Showing
20 changed files
with
391 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.