AydarZaynutdinov commented on a change in pull request #16842: URL: https://github.com/apache/beam/pull/16842#discussion_r814897749
########## File path: playground/backend/containers/go/Dockerfile ########## @@ -69,16 +69,16 @@ ENV HTTP_PROXY="http://127.0.0.1:8081" ENV HTTPS_PROXY="http://127.0.0.1:8081" COPY entrypoint.sh / -COPY proxy.sh / -# Run proxy -RUN sh /proxy.sh # Create a user group `appgroup` and a user `appuser` RUN groupadd --gid 20000 appgroup \ && useradd --uid 20000 --gid appgroup --shell /bin/bash --create-home appuser -# Chown all the files to the app user. -RUN chown -R appuser:appgroup /opt/playground/backend/ && chown -R appuser:appgroup /opt/playground/prepared_folder/ \ - && chmod +x /entrypoint.sh + +RUN mkdir -p /opt/playground/backend/executable_files/ + +# Chown all required files to the `appuser`. +RUN chown -R appuser:appgroup /opt/playground/backend/executable_files/ \ + && chmod -R 777 /usr/local/share/ca-certificates/extra/ && chmod -R 777 /etc/ssl/certs && chmod +x /entrypoint.sh Review comment: if set `776` for the `/usr/local/share/ca-certificates/extra/` and `/etc/ssl/certs` then I receive: ``` cp: cannot stat '/usr/local/share/ca-certificates/extra/mitmproxy-ca.crt': Permission denied /usr/sbin/update-ca-certificates: 114: cd: can't cd to /etc/ssl/certs ``` if set `776` for the `/etc/ssl/certs` then I receive: ``` /usr/sbin/update-ca-certificates: 114: cd: can't cd to /etc/ssl/certs ``` if set `776` for the `/usr/local/share/ca-certificates/extra/` then I receive: ``` cp: cannot stat '/usr/local/share/ca-certificates/extra/mitmproxy-ca.crt': Permission denied ``` So I guess I need to set `777` for both of them. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
