Skip to content

Commit

Permalink
Merge branch 'main' into retry
Browse files Browse the repository at this point in the history
  • Loading branch information
TomSweeneyRedHat authored Feb 21, 2024
2 parents 243b9ef + aff6485 commit b25a8c6
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions contrib/buildahimage/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# that runs safely with privileges within the container.
#

FROM registry.fedoraproject.org/fedora:latest
FROM registry.fedoraproject.org/fedora-minimal:latest
ARG FLAVOR=stable

label "io.containers.capabilities"="CHOWN,DAC_OVERRIDE,FOWNER,FSETID,KILL,NET_BIND_SERVICE,SETFCAP,SETGID,SETPCAP,SETUID,CHOWN,DAC_OVERRIDE,FOWNER,FSETID,KILL,NET_BIND_SERVICE,SETFCAP,SETGID,SETPCAP,SETUID,SYS_CHROOT"
Expand All @@ -34,24 +34,18 @@ RUN echo -e "\n\n# Added during image build" >> /etc/dnf/dnf.conf && \
# Don't include container-selinux and remove
# directories used by dnf that are just taking
# up space.
# TODO: rpm --setcaps... needed due to Fedora (base) image builds
# being (maybe still?) affected by
# https://bugzilla.redhat.com/show_bug.cgi?id=1995337#c3
RUN dnf -y makecache && \
dnf -y update && \
rpm --setcaps shadow-utils 2>/dev/null && \
case "${FLAVOR}" in \
RUN case "${FLAVOR}" in \
stable) \
dnf -y install buildah fuse-overlayfs cpp --exclude container-selinux \
dnf5 -y install buildah fuse-overlayfs cpp --exclude container-selinux \
;; \
testing) \
dnf -y install --enablerepo=updates-testing buildah fuse-overlayfs cpp \
dnf5 -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 \
dnf5 -y install 'dnf5-command(copr)' --enablerepo=updates-testing && \
dnf5 -y copr enable rhcontainerbot/podman-next && \
dnf5 -y install buildah fuse-overlayfs \
--exclude container-selinux \
--enablerepo=updates-testing \
;; \
Expand All @@ -60,7 +54,7 @@ RUN dnf -y makecache && \
exit 1 \
;; \
esac && \
dnf -y clean all && \
dnf5 -y clean all && \
rm -rf /var/cache /var/log/dnf* /var/log/yum.*

ADD ./containers.conf /etc/containers/
Expand Down

0 comments on commit b25a8c6

Please sign in to comment.