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

Commit 6bfb19a

Browse files
committed
Use Selenium 3 via docker run -e USE_SELENIUM=3
1 parent b0527e2 commit 6bfb19a

File tree

14 files changed

+199
-122
lines changed

14 files changed

+199
-122
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ matrix:
4242
- DOCKER_VERSION="stable"
4343
DOCKER_COMPOSE_VERSION="1.8.1"
4444
DOCKER_PUSH=true
45-
DOCKER_PUSH_LATEST=false
45+
DOCKER_PUSH_LATEST=true
4646
# Linux with docker:beta/older compose:beta/older
4747
- os: linux
4848
language: python
@@ -51,7 +51,7 @@ matrix:
5151
services:
5252
- docker
5353
env:
54-
- DOCKER_VERSION="1.12.2-rc1"
54+
- DOCKER_VERSION="1.12.2-rc2"
5555
DOCKER_COMPOSE_VERSION="1.8.0"
5656
# Linux with docker:stable compose:beta/older
5757
- os: linux
@@ -71,7 +71,7 @@ matrix:
7171
services:
7272
- docker
7373
env:
74-
- DOCKER_VERSION="1.12.2-rc1"
74+
- DOCKER_VERSION="1.12.2-rc2"
7575
DOCKER_COMPOSE_VERSION="1.8.1"
7676
# Mac OSX: only test native docker version
7777
- os: osx

CHANGELOG.md

Lines changed: 130 additions & 100 deletions
Large diffs are not rendered by default.

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ For pull requests or local commits:
55

66
time (./test/bef && ./test/install && ./test/script_start && ./test/script_end) ; beep
77
docker exec grid versions && ./test/after_script && travis lint
8-
open ./images/grid_console.png && open ./videos/chrome/*.mkv
9-
git checkout -b tmp-3.0.0b4 && git checkout ./images/grid_console.png
8+
open ./images/grid2_console.png && open ./images/grid3_console.png && open ./videos/chrome/*.mkv
9+
git checkout -b tmp-3.0.0b4a && git checkout ./images/grid2_console.png && git checkout ./images/grid3_console.png
1010
#git add ... git commit ... git push ... open pull request
1111

1212
For repository owners only:
1313

1414
git commit -m "Add Selenium 3.0.0-beta4 via docker run -e USE_SELENIUM=3"
15-
git tag -d latest && git tag 3.0.0b4 && git push origin tmp-3.0.0b4 && git push --tags
15+
git tag -d latest && git tag 3.0.0b4a && git push origin tmp-3.0.0b4a && git push --tags
1616

1717
-- Wait for Travis to pass OK
1818
-- Make sure changes got merged into master by elgalubot
1919

20-
git checkout master && git pull && git branch -d tmp-3.0.0b4 && git push origin --delete tmp-3.0.0b4
20+
git checkout master && git pull && git branch -d tmp-3.0.0b4a && git push origin --delete tmp-3.0.0b4a
2121

2222
-- Re-add TBD_* section in CHANGELOG.md starting with TBD_DOCKER_TAG
2323
-- If Chrome version changed upload:
@@ -35,9 +35,9 @@ Keep certain bins if chrome version changed for example:
3535
## Retry
3636
Failed in Travis? retry
3737

38-
git tag -d 3.0.0b4 && git push origin :3.0.0b4
38+
git tag -d 3.0.0b4a && git push origin :3.0.0b4a
3939
#git add ...
40-
git commit --amend && git tag 3.0.0b4 && git push --force origin tmp-3.0.0b4 && git push --tags
40+
git commit --amend && git tag 3.0.0b4a && git push --force origin tmp-3.0.0b4a && git push --tags
4141

4242
## Docker push from Travis CI
4343
Travis [steps](https://docs.travis-ci.com/user/docker/#Pushing-a-Docker-Image-to-a-Registry) involve `docker login` and docker credentials encryptions.

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
* firefox stable [last 18 versions can be found here][2.47.1m]
1515
* fluxbox or openbox (lightweight window managers)
1616

17-
![docker-selenium-grid](./images/grid_console.png)
17+
Selenium 2
18+
![docker-selenium-grid](./images/grid2_console.png)
19+
20+
Selenium 3
21+
![docker-selenium-grid](./images/grid3_console.png)
1822

1923
### Purpose
2024
The purpose of this project is to have [Selenium][] running as simple and as fast as possible.
@@ -96,6 +100,22 @@ Is now possible to choose Selenium 2 or Selenium 3 via docker run `-e USE_SELENI
96100
Be ready for seeing your tests failing in Firefox.
97101
Please google those errors first before opening an issue in this project.
98102

103+
### e.g. Selenium 2 with FF 47.0.1
104+
```sh
105+
# capabilities['marionette'] = False
106+
docker run --rm -ti --name=grid2 -p 4444:24444 -p 5900:25900 \
107+
-e USE_SELENIUM=2 \
108+
-v /dev/shm:/dev/shm elgalu/selenium
109+
```
110+
111+
### e.g. Selenium 3 with FF 49.0.1
112+
```sh
113+
# capabilities['marionette'] = True
114+
docker run --rm -ti --name=grid3 -p 4444:24444 -p 5900:25900 \
115+
-e USE_SELENIUM=3 \
116+
-v /dev/shm:/dev/shm elgalu/selenium
117+
```
118+
99119
### Docker Compose
100120
See [docker-compose](./docs/docker-compose.md)
101121

TBD_DOCKER_TAG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
+ Date: TBD_DATE
33
+ TBD_COMMIT_MSG
44
+ Image tag details:
5-
+ Selenium: vTBD_SELENIUM_VERSION (TBD_SELENIUM_REVISION)
5+
+ Selenium 2: TBD_SELENIUM_2_VERSION (TBD_SELENIUM_2_REVISION)
6+
+ Selenium 3: 3.0.0-beta4 (3169782)
67
+ Chrome stable: TBD_CHROME_STABLE
7-
+ Firefox stable: TBD_FIREFOX_STABLE
8+
+ Firefox for Selenium 2: TBD_FIREFOX_FOR_SEL2
9+
+ Firefox for Selenium 3: TBD_FIREFOX_FOR_SEL3
10+
+ Geckodriver: TBD_GECKO_DRIVER
811
+ Chromedriver: TBD_CHROME_DRIVER (TBD_CHROMEDRIVER_COMMIT)
912
+ Java: TBD_JAVA_VENDOR Java TBD_JAVA_BUILD
1013
+ Timezone: TBD_TIME_ZONE
@@ -16,7 +19,7 @@
1619
+ Tested on kernel CI host: TBD_HOST_UNAME
1720
+ Built at dev host with: Docker version 1.12.1, build 23cf638
1821
+ Built at CI host with: Docker version TBD_DOCKER_VERS, build TBD_DOCKER_BUILD
19-
+ Built at dev host with: Docker Compose version 1.8.1, build 878cff1
22+
+ Built at dev host with: Docker Compose version 1.8.0, build f3628c7
2023
+ Built at CI host with: Docker Compose version TBD_DOCKER_COMPOSE_VERS, build TBD_DOCKER_COMPOSE_BUILD
2124
+ Image size: TBD_IMAGE_SIZE
2225
+ Digest: TBD_DIGEST

bin/entry.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ rm -f ${RUN_DIR}/*
3333
export SELENIUM_JAR_PATH="${SEL_HOME}/selenium-server-standalone-${USE_SELENIUM}.jar"
3434
export FIREFOX_DEST_BIN="${SEL_HOME}/firefox-for-sel-${USE_SELENIUM}/firefox"
3535
sudo ln -fs ${FIREFOX_DEST_BIN} /usr/bin/firefox
36+
export FIREFOX_VERSION=$(firefox_version)
3637

3738
echo "-- INFO: Chrome..... Version: $(chrome_stable_version)"
38-
echo "-- INFO: Firefox.... Version: $(firefox_version)"
39+
echo "-- INFO: Firefox.... Version: ${FIREFOX_VERSION}"
3940
echo "-- INFO: Selenium... Version: ${USE_SELENIUM}"
4041

4142
# export PATH="${PATH}:${BIN_UTILS}"

bin/geckodriver_version

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
# Example:
4+
# geckodriver --version 2>&1
5+
#=> geckodriver 0.10.0
6+
#=> ...... The source is available at....
7+
8+
# Example:
9+
#=> 0.10.0
10+
geckodriver --version 2>&1 | grep -Po '(?<=geckodriver )([a-z0-9\.]+)'

bin/versions

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ echo "firefox-for-sel-3_version=$(firefox-for-sel-3_version)"
1313
echo "chromedriver_version=$(chromedriver_version)"
1414
chromedriver --version
1515

16+
echo "geckodriver_version=$(geckodriver_version)"
17+
geckodriver --version
18+
1619
echo "sauce_connect_version=$(sauce_connect_version)"
1720
sc | grep build
1821

File renamed without changes.

images/grid3_console.png

52.3 KB
Loading

0 commit comments

Comments
 (0)