mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Merge pull request #10301 from kdelee/unqualified_images
Force fully qualified image names If we try and pull an unqualified image name, jobs hang on a podman prompt. I set the permissions as 644 because thats what worked for me because rootless podman needs to be able to read the file, but maybe there is another way to achieve that Reviewed-by: Christian Adams <rooftopcellist@gmail.com>
This commit is contained in:
commit
92401e5328
@ -156,6 +156,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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user