commit 723b9f185f942cf7d55c1c882b180c2b8fd4b1f4 Author: Sebastian Hugentobler Date: Tue Jun 3 08:16:32 2025 +0200 initial commit diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..72aca2d --- /dev/null +++ b/Containerfile @@ -0,0 +1,12 @@ +FROM docker.io/jenkins/ssh-agent:alpine-jdk21 + +RUN apk --no-cache add \ + podman \ + fuse-overlayfs + +RUN mkdir -p /run/containers + +RUN echo jenkins:100000:65536 >/etc/subuid +RUN echo jenkins:100000:65536 >/etc/subgid + +RUN ln -s /usr/bin/podman /usr/bin/docker diff --git a/rootfs/etc/containers/containers.conf b/rootfs/etc/containers/containers.conf new file mode 100644 index 0000000..3f8d495 --- /dev/null +++ b/rootfs/etc/containers/containers.conf @@ -0,0 +1,2 @@ +[containers] +userns = "keep-id" diff --git a/rootfs/etc/containers/storage.conf b/rootfs/etc/containers/storage.conf new file mode 100644 index 0000000..8c99f1e --- /dev/null +++ b/rootfs/etc/containers/storage.conf @@ -0,0 +1,8 @@ +[storage] +driver = "overlay" +runroot = "/tmp/containers" +graphroot = "$HOME/.local/share/containers/storage" +rootless_storage_path = "$HOME/.local/share/containers/storage" + +[storage.options.overlay] +mount_program = "/usr/bin/fuse-overlayfs"