File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,9 @@ RUN chmod +x /usr/bin/dusk-versions-check.php
160160ADD commands/start-chromedriver.sh /usr/bin/start-chromedriver
161161RUN chmod +x /usr/bin/start-chromedriver
162162
163+ ADD commands/start-project-chromedriver.sh /usr/bin/start-project-chromedriver
164+ RUN chmod +x /usr/bin/start-project-chromedriver
165+
163166VOLUME [ "/var/log/supervisor" ]
164167
165168# Clean system up
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ if [ ${COMPATIBLE} == "INCOMPATIBLE" ]; then
1717 printf " ${GREEN} Starting system Chromedriver (${SYSTEMCHROMEDRIVER} ).\n"
1818 source start-chromedriver
1919else
20- printf " ${GREEN} Starting compatible (project) Chromedriver (${SYSTEMCHROMEDRIVER } ).${NC} \n"
21- $( pwd ) /vendor/laravel/dusk/bin/chromedriver-linux --port=9515
20+ printf " ${GREEN} Starting compatible (project) Chromedriver (${LARAVELCHROMEDRIVER } ).${NC} \n"
21+ source start-project-chromedriver
2222fi
2323printf " ${NC} "
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ GREEN=' \033[0;32m'
3+ NC=' \033[0m'
4+ YELLOW=' \033[1;33m'
5+
6+ printf " ${YELLOW} Waiting for Chromedriver to launch on port 9515...${NC} \n"
7+
8+ $( pwd) /vendor/laravel/dusk/bin/chromedriver-linux --port=9515 &
9+
10+ while ! nc -z localhost 9515; do
11+ sleep 0.1 # wait for 1/10 of the second before check again
12+ done
13+
14+ printf " ${GREEN} Chromedriver initialized successfully on port 9515.${NC} \n "
15+
You can’t perform that action at this time.
0 commit comments