Work around the UBI8 microdnf bug
This applies the published workaround for
allowing
us to track :latest again.
-FROM registry.access.redhat.com/ubi8/ubi-minimal:8.0
-
-# Pinned to image 8.0 because of this bug
-# https://github.com/rpm-software-management/microdnf/issues/50
-# TODO(dimaunx,majopela): we should remove the :8.0 pin when the
-# bug has been solved for the UBI image.
+FROM registry.access.redhat.com/ubi8/ubi-minimal
WORKDIR /var/submariner
+# Workaround for
+# https://github.com/rpm-software-management/microdnf/issues/50
+RUN mkdir -p /run/user/$(id -u)
+
# These are all available in the UBI8 base OS repository
RUN microdnf -y install --nodocs iproute iptables && \
microdnf clean all
