Quellcode durchsuchen

Merge pull request #2709 from abler98/fix/workspace/protoc

Fix protoc bin & include permissions in workspace
Shao Yu-Lung (Allen) vor 4 Jahren
Ursprung
Commit
d8ef60d1a3
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      workspace/Dockerfile

+ 3 - 1
workspace/Dockerfile

@@ -1404,7 +1404,9 @@ RUN if [ ${INSTALL_PROTOC} = true ]; then \
   curl -L -o /tmp/protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v${REAL_PROTOC_VERSION}/${PROTOC_ZIP} && \
   unzip -q -o /tmp/protoc.zip -d /usr/local bin/protoc && \
   unzip -q -o /tmp/protoc.zip -d /usr/local 'include/*' && \
-  rm -f /tmp/protoc.zip \
+  rm -f /tmp/protoc.zip && \
+  chmod +x /usr/local/bin/protoc && \
+  chmod -R +r /usr/local/include/google \
 ;fi
 
 ###########################################################################