How to enable proxy settings in QMetry App docker?
To configure the proxy for the QMetry app docker, you can refer to the following configuration details that need to be done in the docker.
Configuring proxy variables in the `setenv.sh` file
Go to the docker container using the command -
docker exec -it qmetry_app_1 bashEdit the
setenv.shfile located under/home/qmetry/QMetry/binfoldercd binvim setenv.sh
Edit the value of the “CATALINA_OPTS“ & “JAVA_OPTS” variables, and add the parameters
-Dhttp.proxySet,-Dhttp.proxyHost,-Dhttp.proxyPort,-Dhttps.proxyHost,-Dhttps.proxyPort,-Dhttp.nonProxyHostsas shown below. Replace the proxy server host details fromproxy.qmetry.comwith your hostname.Note: The
-Xmsand-Xmxvalues could differ and they do not need to be updated.export CATALINA_OPTS="$CATALINA_OPTS -Duser.timezone=UTC -Dhttp.proxyHost=proxy.qmetry.com -Dhttp.proxyPort=10262 -Dhttps.proxyHost=proxy.qmetry.com -Dhttps.proxyPort=10262 -Dhttp.nonProxyHosts=10.105.104.211" export JAVA_OPTS="$JAVA_OPTS -Xms2g -Xmx4g -Dfile.encoding=UTF8 -Dhttp.proxySet=true -Dhttp.proxyHost=proxy.qmetry.com -Dhttp.proxyPort=10262 -Dhttps.proxyHost=proxy.qmetry.com -Dhttps.proxyPort=10262 -Dhttp.nonProxyHosts=10.105.104.211"
Save the file and exit the container -
Escfollowed by:wqRestart QMetry App docker container -
docker restart qmetry_app_1