Skip to content

Commit 4b9b25e

Browse files
committed
stop-chromedriver.sh added
1 parent 2b73124 commit 4b9b25e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,14 @@ RUN chmod +x /usr/bin/chromedriver-compatibility-matrix.php
157157
ADD commands/dusk-versions-check.php /usr/bin/dusk-versions-check.php
158158
RUN chmod +x /usr/bin/dusk-versions-check.php
159159

160+
ADD commands/start-system-chromedriver.sh /usr/bin/start-system-chromedriver
161+
RUN chmod +x /usr/bin/start-system-chromedriver
160162

163+
ADD commands/start-project-chromedriver.sh /usr/bin/start-project-chromedriver
164+
RUN chmod +x /usr/bin/start-project-chromedriver
165+
166+
ADD commands/stop-chromedriver.sh /usr/bin/stop-project-chromedriver
167+
RUN chmod +x /usr/bin/stop-chromedriver
161168

162169

163170
VOLUME [ "/var/log/supervisor" ]

commands/stop-chromedriver.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
GREEN='\033[0;32m'
3+
NC='\033[0m'
4+
YELLOW='\033[1;33m'
5+
6+
printf "${YELLOW}Stopping Chromedriver${NC}\n"
7+
8+
pkill chromedriver
9+
10+
printf "${GREEN}Chromedriver stopped.${NC}\n "
11+

0 commit comments

Comments
 (0)