mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
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:
@@ -157,6 +157,10 @@ RUN dnf install -y podman
|
|||||||
RUN echo -e 'cgroup_manager = "cgroupfs"\nevents_logger = "file"' > /etc/containers/libpod.conf
|
RUN echo -e 'cgroup_manager = "cgroupfs"\nevents_logger = "file"' > /etc/containers/libpod.conf
|
||||||
{% endif %}
|
{% 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 app from builder
|
||||||
COPY --from=builder /var/lib/awx /var/lib/awx
|
COPY --from=builder /var/lib/awx /var/lib/awx
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user