#50 Interest in a Fedora micro image?
Opened a year ago by mroche. Modified a year ago

Red Hat recently announced their ubi-micro image that provides a smaller, package manager-less image. Is there any perceived value in providing a similar image based on Fedora?

Relevant documentation:
Understanding the UBI-micro image
Using the ubi-micro image

The ubi-micro Dockerfile

FROM registry.access.redhat.com/ubi8/ubi AS ubi-micro-build
RUN mkdir -p /mnt/rootfs
RUN yum install --installroot /mnt/rootfs coreutils-single glibc-minimal-langpack --releasever 8 --setopt install_weak_deps=false --nodocs -y; yum --installroot /mnt/rootfs clean all
RUN rm -rf /mnt/rootfs/var/cache/* /mnt/rootfs/var/log/dnf* /mnt/rootfs/var/log/yum.*

FROM scratch AS ubi8-micro
LABEL maintainer="Red Hat, Inc."

LABEL com.redhat.component="ubi8-micro-container"
LABEL name="ubi8/ubi-micro"
LABEL version="8.4"

#label for EULA
LABEL com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI"

#labels for container catalog
LABEL summary="ubi8 micro image"
LABEL description="Very small image which doesn't install the package manager."
LABEL io.k8s.display-name="Ubi8-micro"
LABEL io.openshift.expose-services=""

COPY --from=ubi-micro-build /mnt/rootfs/ /
COPY --from=ubi-micro-build /etc/yum.repos.d/ubi.repo /etc/yum.repos.d/ubi.repo
CMD /bin/sh

I created a modified version of this based on Fedora 34 (standard, non-s2i) and it came out to ~37.9MB uncompressed, and 14.45MiB compressed (reported from a GitLab registry).


Login to comment on this ticket.

Metadata