ARG FLAVOR |
|1 FLAVOR=stable /bin/sh -c dnf -y update && rpm --setcaps shadow-utils 2>/dev/null && case "${FLAVOR}" in stable) dnf -y install buildah fuse-overlayfs cpp --exclude container-selinux ;; testing) dnf -y install --enablerepo=updates-testing buildah fuse-overlayfs cpp --exclude container-selinux ;; upstream) dnf -y install 'dnf-command(copr)' --enablerepo=updates-testing && dnf -y copr enable rhcontainerbot/podman-next && dnf -y install buildah fuse-overlayfs --exclude container-selinux --enablerepo=updates-testing ;; *) printf "\\nFLAVOR argument must be set and valid, currently: '${FLAVOR}'\\n\\n" 1>&2 && exit 1 ;; esac && dnf -y clean all && rm -rf /var/cache /var/log/dnf* /var/log/yum.* |
ADD file:8d8634aea5b9ee82cf2c39086e2fd82fbee0b14e23f86111e0577bee1cdeb424 in /etc/containers/ |
|1 FLAVOR=stable /bin/sh -c sed -e 's|^#mount_program|mount_program|g' -e '/additionalimage.*/a "/var/lib/shared",' -e 's|^mountopt[[:space:]]*=.*$|mountopt = "nodev,fsync=0"|g' /usr/share/containers/storage.conf > /etc/containers/storage.conf && chmod 644 /etc/containers/storage.conf && chmod 644 /etc/containers/containers.conf |
|1 FLAVOR=stable /bin/sh -c 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 |
|1 FLAVOR=stable /bin/sh -c useradd build && echo -e "build:1:999\nbuild:1001:64535" > /etc/subuid && echo -e "build:1:999\nbuild:1001:64535" > /etc/subgid && mkdir -p /home/build/.local/share/containers && chown -R build:build /home/build |
VOLUME /var/lib/containers |
VOLUME /home/build/.local/share/containers |
ENV BUILDAH_ISOLATION=chroot |
LABEL "org.opencontainers.image.source"="https://github.com/containers/buildah.git" |
LABEL "org.opencontainers.image.revision"="7474ed6fc7751574a1029835e5db850f85d419fb" |
LABEL "org.opencontainers.image.created"="2022-12-09T22:24:07+00:00" |
LABEL "org.opencontainers.image.version"="1.28.0" |
USER build |
WORKDIR /home/build |
/bin/sh -c export STORAGE_DRIVER=fuse-overlayfs |
ADD file:f61df46e8237072081fd2589fff12c1fb19eeb958106b23998458c7b8b9b0c32 in /bin/ |
ENTRYPOINT ["/bin/drone-docker"] |