From b533853b14a71a18ec31d2059194058ac399ef4a Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Fri, 1 Nov 2024 10:49:39 -0500 Subject: [PATCH] Fix permissions on mock config copied into container (#1072) --- ros_buildfarm/templates/release/rpm/binarypkg_task.Dockerfile.em | 1 + ros_buildfarm/templates/release/rpm/sourcepkg_task.Dockerfile.em | 1 + 2 files changed, 2 insertions(+) diff --git a/ros_buildfarm/templates/release/rpm/binarypkg_task.Dockerfile.em b/ros_buildfarm/templates/release/rpm/binarypkg_task.Dockerfile.em index a37b38d0b..dfcbef858 100644 --- a/ros_buildfarm/templates/release/rpm/binarypkg_task.Dockerfile.em +++ b/ros_buildfarm/templates/release/rpm/binarypkg_task.Dockerfile.em @@ -30,6 +30,7 @@ RUN dnf update --refresh -y RUN echo -e "@('\\n'.join(key.splitlines()))" > /etc/pki/mock/RPM-GPG-KEY-ros-buildfarm-@(i) @[end for]@ COPY mock_config.cfg /etc/mock/ros_buildfarm.cfg +RUN chmod 644 /etc/mock/ros_buildfarm.cfg USER buildfarm ENTRYPOINT ["sh", "-c"] diff --git a/ros_buildfarm/templates/release/rpm/sourcepkg_task.Dockerfile.em b/ros_buildfarm/templates/release/rpm/sourcepkg_task.Dockerfile.em index 8d61ba32b..d187e125e 100644 --- a/ros_buildfarm/templates/release/rpm/sourcepkg_task.Dockerfile.em +++ b/ros_buildfarm/templates/release/rpm/sourcepkg_task.Dockerfile.em @@ -25,6 +25,7 @@ RUN dnf update --refresh -y RUN echo -e "@('\\n'.join(key.splitlines()))" > /etc/pki/mock/RPM-GPG-KEY-ros-buildfarm-@(i) @[end for]@ COPY mock_config.cfg /etc/mock/ros_buildfarm.cfg +RUN chmod 644 /etc/mock/ros_buildfarm.cfg USER buildfarm ENTRYPOINT ["sh", "-c"]