From b5ad81c8616169a9d69e6f44f13e044dcc31b8fe Mon Sep 17 00:00:00 2001 From: Jon Skeet Date: Fri, 14 Feb 2025 13:36:50 +0000 Subject: [PATCH] fix: Fix the chmod call in Dockerfile First change is a simple typo - and it turns out we need to access stuff under /app, too... --- Dockerfile.generator | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile.generator b/Dockerfile.generator index 57c87f673acd..3caaa4c4cc37 100644 --- a/Dockerfile.generator +++ b/Dockerfile.generator @@ -46,13 +46,15 @@ ENV PROTOC=/app/protobuf/tools/linux_x64/protoc ENV GRPC_PLUGIN=/app/grpc/tools/linux_x64/grpc_csharp_plugin ENV GAPIC_PLUGIN=/app/gapic/Google.Api.Generator -# Required for dotnet tools to run as an arbitrary user (so we can -# create files in mounted volumes more appropriately) -chmod a+rwx -R /root ENV HOME=/root # Create a really minimal generator-input in the container, for # "unconfigured" generation. COPY generator-input/CommonResourcesConfig.json generator-input/ +# Required for dotnet tools to run as an arbitrary user (so we can +# create files in mounted volumes more appropriately) +RUN chmod a+rwx -R /root +RUN chmod a+rwx -R /app + ENTRYPOINT ["dotnet", "ReleaseManager/Google.Cloud.Tools.ReleaseManager.dll", "container"] \ No newline at end of file