Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Commit 618451a

Browse files
committed
Fix the HEALTHCHECK --interval=2m
1 parent 5e74ec0 commit 618451a

File tree

7 files changed

+46
-8
lines changed

7 files changed

+46
-8
lines changed

CHANGELOG.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,31 @@ Note image ids also change after scm-source.json has being updated which trigger
77
###### To get container versions
88
docker exec grid versions
99

10+
## TBD_DOCKER_TAG
11+
+ **Changes:** https://github.com/elgalu/docker-selenium/compare/TBD_PREV_COMM...master (TBD_DATE)
12+
+ Fix the HEALTHCHECK --interval=2m
13+
+ **Image tag details:**
14+
+ Selenium version: TBD_SELENIUM_3_VERSION (TBD_SELENIUM_3_REVISION)
15+
+ Chrome stable: TBD_CHROME_STABLE
16+
+ Firefox stable: TBD_FIREFOX_FOR_SEL3
17+
+ Geckodriver: TBD_GECKO_DRIVER
18+
+ Chromedriver: TBD_CHROME_DRIVER (TBD_CHROMEDRIVER_COMMIT)
19+
+ Java: TBD_JAVA_VENDOR Java TBD_JAVA_BUILD
20+
+ Timezone: TBD_TIME_ZONE
21+
+ FROM ubuntu:UBUNTU_FLAVOR-UBUNTU_DATE
22+
+ Python: TBD_PYTHON_VERSION
23+
+ Tested on kernel dev host: 4.4.0-78-generic x86_64
24+
+ Tested on kernel CI host: TBD_HOST_UNAME
25+
+ Built at dev host with: Docker version 17.05.0-ce, build 89658be
26+
+ Built at CI host with: Docker version TBD_DOCKER_VERS, build TBD_DOCKER_BUILD
27+
+ Built at dev host with: Docker Compose version 1.13.0, build 1719ceb
28+
+ Built at CI host with: Docker Compose version TBD_DOCKER_COMPOSE_VERS, build TBD_DOCKER_COMPOSE_BUILD
29+
+ Image size: TBD_IMAGE_SIZE
30+
+ Digest: TBD_DIGEST
31+
+ Image ID: TBD_IMAGE_ID
32+
1033
## 3.3.1-p10
11-
+ **Changes:** https://github.com/elgalu/docker-selenium/compare/659750865bf0fd569d...master (2017-05-19)
34+
+ **Changes:** https://github.com/elgalu/docker-selenium/compare/659750865bf0fd569d...5e74ec04c8398054f024d13ed (2017-05-19)
1235
+ BREAKING CHANGES:
1336
++ Drop support for Selenium 2
1437
++ From now on we will show a banner and switch directly to selenium 3

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For pull requests or local commits:
1212

1313
For repository owners only:
1414

15-
git commit -m "Upgrade to Python 3"
15+
git commit -m "Fix the HEALTHCHECK --interval=2m"
1616
git tag -d latest; git tag -d `cat VERSION`; git push origin :`cat VERSION`; git tag `cat VERSION` && git push --force origin tmp-`cat VERSION` && git push --tags
1717

1818
-- Wait for Travis to pass OK

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ ENV FIREFOX_VERSION="${FF_VER}" \
910910
#================================
911911
# VOLUME ${LOGS_DIR}
912912

913-
HEALTHCHECK --interval=1s --timeout=35s --retries=1 \
913+
HEALTHCHECK --interval=2m --timeout=50s --retries=2 \
914914
CMD wait_all_done 30s
915915

916916
#================

TBD_DOCKER_TAG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
+ Timezone: TBD_TIME_ZONE
1212
+ FROM ubuntu:UBUNTU_FLAVOR-UBUNTU_DATE
1313
+ Python: TBD_PYTHON_VERSION
14-
+ Tested on kernel dev host: 4.4.0-77-generic x86_64
14+
+ Tested on kernel dev host: 4.4.0-78-generic x86_64
1515
+ Tested on kernel CI host: TBD_HOST_UNAME
1616
+ Built at dev host with: Docker version 17.05.0-ce, build 89658be
1717
+ Built at CI host with: Docker version TBD_DOCKER_VERS, build TBD_DOCKER_BUILD

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.1-p10
1+
3.3.1-p11

selenium-node-chrome/bin/start-selenium-node-chrome.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ die () {
2424
# Wait for this process dependencies
2525
timeout --foreground ${WAIT_TIMEOUT} wait-xvfb.sh
2626
timeout --foreground ${WAIT_TIMEOUT} wait-xmanager.sh
27+
if [ "${ZALENIUM}" == "true" ]; then
28+
timeout --foreground ${WAIT_TIMEOUT} wait-vnc.sh
29+
timeout --foreground ${WAIT_TIMEOUT} wait-novnc.sh
30+
fi
2731
timeout --foreground ${WAIT_TIMEOUT} wait-selenium-hub.sh
2832

2933
JAVA_OPTS="$(java-dynamic-memory-opts.sh) ${JAVA_OPTS}"

selenium-node-firefox/bin/start-selenium-node-firefox.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,20 @@ die () {
2222
[ -z "${FIREFOX_DEST_BIN}" ] && die "Required env var FIREFOX_DEST_BIN"
2323

2424
# Wait for this process dependencies
25-
timeout --foreground ${WAIT_TIMEOUT} wait-xvfb.sh
26-
timeout --foreground ${WAIT_TIMEOUT} wait-xmanager.sh
27-
timeout --foreground ${WAIT_TIMEOUT} wait-selenium-hub.sh
25+
timeout --foreground ${WAIT_TIMEOUT} wait-xvfb.sh || \
26+
die "Failed while waiting for Xvfb to start!"
27+
timeout --foreground ${WAIT_TIMEOUT} wait-xmanager.sh || \
28+
die "Failed while waiting for XManager to start!"
29+
30+
if [ "${ZALENIUM}" == "true" ]; then
31+
timeout --foreground ${NOVNC_WAIT_TIMEOUT} wait-vnc.sh || \
32+
error "wait-vnc.sh failed within ${NOVNC_WAIT_TIMEOUT} -- Zalenium check."
33+
timeout --foreground ${NOVNC_WAIT_TIMEOUT} wait-novnc.sh || \
34+
error "wait-novnc.sh failed within ${NOVNC_WAIT_TIMEOUT} -- Zalenium check."
35+
fi
36+
37+
timeout --foreground ${WAIT_TIMEOUT} wait-selenium-hub.sh || \
38+
die "Failed while waiting for the Selenium hub to be available!!"
2839

2940
JAVA_OPTS="-Dwebdriver.gecko.driver=/usr/bin/geckodriver ${JAVA_OPTS}"
3041
JAVA_OPTS="$(java-dynamic-memory-opts.sh) ${JAVA_OPTS}"

0 commit comments

Comments
 (0)