TSultanov commented on code in PR #25508:
URL: https://github.com/apache/beam/pull/25508#discussion_r1108463913


##########
playground/backend/containers/scio/entrypoint.sh:
##########
@@ -14,13 +14,9 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-nohup /opt/mitmproxy/mitmdump -s /opt/mitmproxy/allow_list_proxy.py -p 8081 &
-while [ ! -f /home/appuser/.mitmproxy/mitmproxy-ca.pem ] ;
-do
-      sleep 2
-done
-openssl x509 -in /home/appuser/.mitmproxy/mitmproxy-ca.pem -inform PEM -out 
/home/appuser/.mitmproxy/mitmproxy-ca.crt
-cp /home/appuser/.mitmproxy/mitmproxy-ca.crt 
/usr/local/share/ca-certificates/extra/
-update-ca-certificates
+export 
http_proxy=http://$PLAYGROUND_MITM_SERVICE_HOST:$PLAYGROUND_MITM_SERVICE_PORT
+export 
https_proxy=http://$PLAYGROUND_MITM_SERVICE_HOST:$PLAYGROUND_MITM_SERVICE_PORT
+export JAVA_TOOL_OPTIONS="-Dhttp.proxyHost=$PLAYGROUND_MITM_SERVICE_HOST 
-Dhttp.proxyPort:$PLAYGROUND_MITM_SERVICE_PORT 
-Dhttps.proxyHost=$PLAYGROUND_MITM_SERVICE_HOST 
-Dhttps.proxyPort=$PLAYGROUND_MITM_SERVICE_PORT"
+export SBT_OPTS="-Dhttp.proxyHost=$PLAYGROUND_MITM_SERVICE_HOST 
-Dhttp.proxyPort:$PLAYGROUND_MITM_SERVICE_PORT 
-Dhttps.proxyHost=$PLAYGROUND_MITM_SERVICE_HOST 
-Dhttps.proxyPort=$PLAYGROUND_MITM_SERVICE_PORT"

Review Comment:
   Replace with
   ```shell
   export SBT_OPTS="$SBT_OPTS -Dhttp.proxyHost=$PLAYGROUND_MITM_SERVICE_HOST 
-Dhttp.proxyPort:$PLAYGROUND_MITM_SERVICE_PORT 
-Dhttps.proxyHost=$PLAYGROUND_MITM_SERVICE_HOST 
-Dhttps.proxyPort=$PLAYGROUND_MITM_SERVICE_PORT"
   ```



-- 
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]

Reply via email to