Force fully qualified image names

If we try and pull an unqualified image name, jobs hang on a podman
prompt.
This commit is contained in:
Elijah DeLee 2021-05-27 10:59:25 -04:00
parent 4e129d3d04
commit 5d838b8980

View File

@ -157,6 +157,10 @@ RUN dnf install -y podman
RUN echo -e 'cgroup_manager = "cgroupfs"\nevents_logger = "file"' > /etc/containers/libpod.conf
{% endif %}
# Ensure we must use fully qualified image names
# This prevents podman prompt that hangs when trying to pull unqualified images
RUN mkdir -p /etc/containers/registries.conf.d/ && echo "unqualified-search-registries = []" >> /etc/containers/registries.conf.d/force-fully-qualified-images.conf && chmod 644 /etc/containers/registries.conf.d/force-fully-qualified-images.conf
# Copy app from builder
COPY --from=builder /var/lib/awx /var/lib/awx