From 126b037fe48f0b722f48fa18970bf3adc99639ba Mon Sep 17 00:00:00 2001 From: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> Date: Tue, 14 May 2024 14:18:48 -0400 Subject: [PATCH] Fix podman failure in development environment (#15188) ``` ERRO[0000] path "/var/lib/awx/.config" exists and it is not owned by the current user ``` start to happen with podman 5 it seems that the config files are no longer needed removing it fixes the problem --- tools/ansible/roles/dockerfile/templates/Dockerfile.j2 | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tools/ansible/roles/dockerfile/templates/Dockerfile.j2 b/tools/ansible/roles/dockerfile/templates/Dockerfile.j2 index 98e8f2a577f0..90046482c0b9 100644 --- a/tools/ansible/roles/dockerfile/templates/Dockerfile.j2 +++ b/tools/ansible/roles/dockerfile/templates/Dockerfile.j2 @@ -224,8 +224,6 @@ ADD tools/docker-compose/start_tests.sh /start_tests.sh ADD tools/docker-compose/bootstrap_development.sh /usr/bin/bootstrap_development.sh ADD tools/docker-compose/entrypoint.sh /entrypoint.sh ADD tools/scripts/config-watcher /usr/bin/config-watcher -ADD tools/docker-compose/containers.conf /etc/containers/containers.conf -ADD tools/docker-compose/podman-containers.conf /var/lib/awx/.config/containers/containers.conf {% elif kube_dev|bool %} RUN ln -sf /awx_devel/tools/ansible/roles/dockerfile/files/launch_awx_web.sh /usr/bin/launch_awx_web.sh RUN ln -sf /awx_devel/tools/ansible/roles/dockerfile/files/launch_awx_task.sh /usr/bin/launch_awx_task.sh @@ -275,9 +273,6 @@ RUN for dir in \ {% if (build_dev|bool) or (kube_dev|bool) %} RUN for dir in \ - /etc/containers \ - /var/lib/awx/.config/containers \ - /var/lib/awx/.config/cni \ /var/lib/awx/.local \ /var/lib/awx/venv \ /var/lib/awx/venv/awx/bin \ @@ -294,8 +289,6 @@ RUN for dir in \ /var/lib/awx/vendor ; \ do mkdir -m 0775 -p $dir ; chmod g+rwx $dir ; chgrp root $dir ; done && \ for file in \ - /etc/containers/containers.conf \ - /var/lib/awx/.config/containers/containers.conf \ /var/lib/shared/overlay-images/images.lock \ /var/lib/shared/overlay-layers/layers.lock \ /var/lib/shared/vfs-images/images.lock \