File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ die () {
4+ echo " $( basename " $0 " ) : $* " >&2
5+ exit 1
6+ }
7+
8+ #
9+ # Script for setting all the variables to run the ATH locally on Unix
10+ # Use config.groovy in the same folder if desired, uncomment below
11+ #
12+
13+ # export CONFIG="${PWD}/config.groovy"
14+ export DISPLAY=:0
15+ export INTERACTIVE=false
16+ export BROWSER=remote-webdriver-firefox
17+ export REMOTE_WEBDRIVER_URL=http://127.0.0.1:4444/wd/hub
18+ export JENKINS_JAVA_OPTS=-Xmx1280m
19+ if [ -z " ${JENKINS_WAR} " ] && [ -f /usr/share/java/jenkins.war ]; then
20+ export JENKINS_WAR=/usr/share/java/jenkins.war
21+ fi
22+
23+ IP=$( ip addr show docker0 2> /dev/null | grep ' inet ' | awk ' {print $2}' | cut -d' /' -f1) ||
24+ die " failed to retrieve IP address of Docker interface"
25+ export SELENIUM_PROXY_HOSTNAME=" ${IP} "
26+ export TESTCONTAINERS_HOST_OVERRIDE=" ${IP} "
27+ export JENKINS_LOCAL_HOSTNAME=" ${IP} "
28+
29+ echo " To start the remote Firefox container, run the following command:"
30+ echo " docker run --shm-size=256m -d -p 127.0.0.1:4444:4444 -p 127.0.0.1:5900:5900 -e no_proxy=localhost -e SCREEN_WIDTH=1680 -e SCREEN_HEIGHT=1090 selenium/standalone-firefox:4.32.0"
You can’t perform that action at this time.
0 commit comments