Skip to content

Commit 9928f38

Browse files
committed
updates & fixes
1 parent 1ce07a9 commit 9928f38

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ RUN chmod +x /usr/bin/dusk-versions-check.php
160160
ADD commands/start-chromedriver.sh /usr/bin/start-chromedriver
161161
RUN 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+
163166
VOLUME [ "/var/log/supervisor" ]
164167

165168
# Clean system up

commands/chrome-system-check.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if [ ${COMPATIBLE} == "INCOMPATIBLE" ]; then
1717
printf "${GREEN}Starting system Chromedriver (${SYSTEMCHROMEDRIVER}).\n"
1818
source start-chromedriver
1919
else
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
2222
fi
2323
printf "${NC}"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+

0 commit comments

Comments
 (0)