Spaces:
Paused
Paused
# | |
# IMPORTANT: Change this file only in directory Standalone! | |
if [ ! -z "$SE_OPTS" ]; then | |
echo "Appending Selenium options: ${SE_OPTS}" | |
fi | |
/opt/bin/generate_config | |
echo "Selenium Grid Standalone configuration: " | |
cat /opt/selenium/config.toml | |
echo "Starting Selenium Grid Standalone..." | |
EXTRA_LIBS="/opt/selenium/selenium-http-jdk-client.jar" | |
if [ ! -z "$SE_ENABLE_TRACING" ]; then | |
EXTERNAL_JARS=$(</external_jars/.classpath.txt) | |
EXTRA_LIBS=${EXTRA_LIBS}:${EXTERNAL_JARS} | |
echo "Tracing is enabled" | |
echo "Classpath will be enriched with these external jars : " ${EXTRA_LIBS} | |
else | |
echo "Tracing is disabled" | |
fi | |
java ${JAVA_OPTS:-$SE_JAVA_OPTS} -Dwebdriver.http.factory=jdk-http-client \ | |
-jar /opt/selenium/selenium-server.jar \ | |
--ext ${EXTRA_LIBS} standalone \ | |
--bind-host ${SE_BIND_HOST} \ | |
--port ${SE_BIND_PORT} | |
--config /opt/selenium/config.toml \ | |
${SE_OPTS} |