Skip to content

Commit

Permalink
fix: Fix the chmod call in Dockerfile
Browse files Browse the repository at this point in the history
First change is a simple typo - and it turns out we need to access
stuff under /app, too...
  • Loading branch information
jskeet committed Feb 14, 2025
1 parent 57f5add commit b5ad81c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile.generator
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit b5ad81c

Please sign in to comment.