Skip to content

Commit b7cd0e1

Browse files
committed
READMEs refined for each image
Part of SeleniumHQ#5
1 parent 2f736bc commit b7cd0e1

File tree

10 files changed

+368
-5
lines changed

10 files changed

+368
-5
lines changed

Base/README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,34 @@
11
# Selenium Base Image
22

3-
This image is not meant to be run directly! It serves as the base image used for each of the Selenium images involved in setting up a Selenium Grid.
3+
_This image is not meant to be run directly!_ It serves as the base image used for each of the Selenium images involved in setting up a Selenium Grid.
4+
5+
## Dockerfile
6+
7+
[`selenium/base` Dockerfile](https://github.com/SeleniumHQ/docker-selenium/blob/master/Base/Dockerfile)
48

59
## What is Selenium?
610
_Selenium automates browsers._ That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.
711

812
Selenium has the support of some of the largest browser vendors who have taken (or are taking) steps to make Selenium a native part of their browser. It is also the core technology in countless other browser automation tools, APIs and frameworks.
913

1014
See the Selenium [site](http://docs.seleniumhq.org/) for documation on usage within your test code.
15+
16+
## License
17+
18+
View [license information](https://code.google.com/p/selenium/source/browse/COPYING) for the software contained in this image.
19+
20+
## Getting Help
21+
22+
### User Group
23+
24+
The first place where people ask for help about Selenium is the [Official User Group](https://groups.google.com/forum/#!forum/selenium-users). Here, you'll find that most of the time, someone already found the problem you are facing right now, and usually reached the solution for which you are looking.
25+
26+
_Note: Please make sure to search the group before asking for something. Your question likely won't get answered if it was previously answered in another discussion!_
27+
28+
### Chat Room
29+
30+
The best place to ask for help is the user group (because they also keep the information accessible for others to read in the future). However, if you have a very important (or too simple) issue that needs a solution ASAP, you can always enter the IRC chat room. You might just find someone ready to help on `#selenium` at [Freenode](https://freenode.net/).
31+
32+
### Issues
33+
34+
If you have any problems with or questions about this image, please contact us through a [Github issue](https://github.com/SeleniumHQ/docker-selenium/issues). If you have any problems with or questions about Selenium, please contact us through Selenium's [But Tracker](https://code.google.com/p/selenium/issues/list).

Hub/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
The Hub receives a test to be executed along with information on which browser and 'platform' where the test should be run. The hub will use this information and delegate to a node that can service those needs.
44

5+
## Dockerfile
6+
7+
[`selenium/hub` Dockerfile](https://github.com/SeleniumHQ/docker-selenium/blob/master/Hub/Dockerfile)
8+
59
## How to use this image
610

711
```
@@ -21,3 +25,23 @@ _Selenium automates browsers._ That's it! What you do with that power is entirel
2125
Selenium has the support of some of the largest browser vendors who have taken (or are taking) steps to make Selenium a native part of their browser. It is also the core technology in countless other browser automation tools, APIs and frameworks.
2226

2327
See the Selenium [site](http://docs.seleniumhq.org/) for documation on usage within your test code.
28+
29+
## License
30+
31+
View [license information](https://code.google.com/p/selenium/source/browse/COPYING) for the software contained in this image.
32+
33+
## Getting Help
34+
35+
### User Group
36+
37+
The first place where people ask for help about Selenium is the [Official User Group](https://groups.google.com/forum/#!forum/selenium-users). Here, you'll find that most of the time, someone already found the problem you are facing right now, and usually reached the solution for which you are looking.
38+
39+
_Note: Please make sure to search the group before asking for something. Your question likely won't get answered if it was previously answered in another discussion!_
40+
41+
### Chat Room
42+
43+
The best place to ask for help is the user group (because they also keep the information accessible for others to read in the future). However, if you have a very important (or too simple) issue that needs a solution ASAP, you can always enter the IRC chat room. You might just find someone ready to help on `#selenium` at [Freenode](https://freenode.net/).
44+
45+
### Issues
46+
47+
If you have any problems with or questions about this image, please contact us through a [Github issue](https://github.com/SeleniumHQ/docker-selenium/issues). If you have any problems with or questions about Selenium, please contact us through Selenium's [But Tracker](https://code.google.com/p/selenium/issues/list).

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ firefox: nodebase
2424
cd ./NodeFirefox && docker build -t $(NAME)/node-firefox:$(VERSION) .
2525

2626
generate_chromedebug:
27-
cd ./NodeDebug && ./generate.sh NodeChromeDebug node-chrome $(VERSION)
27+
cd ./NodeDebug && ./generate.sh NodeChromeDebug node-chrome Chrome $(VERSION)
2828

2929
chromedebug: generate_chromedebug chrome
3030
cd ./NodeChromeDebug && docker build -t $(NAME)/node-chrome-debug:$(VERSION) .
3131

3232
generate_firefoxdebug:
33-
cd ./NodeDebug && ./generate.sh NodeFirefoxDebug node-firefox $(VERSION)
33+
cd ./NodeDebug && ./generate.sh NodeFirefoxDebug node-firefox Firefox $(VERSION)
3434

3535
firefoxdebug: generate_firefoxdebug firefox
3636
cd ./NodeFirefoxDebug && docker build -t $(NAME)/node-firefox-debug:$(VERSION) .

NodeBase/README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Selenium Grid Node Base
2+
3+
_This image is not meant to be run directly!_ It serves as the base image used for Selenium Nodes.
4+
5+
## Dockerfile
6+
7+
[`selenium/node-base` Dockerfile](https://github.com/SeleniumHQ/docker-selenium/blob/master/NodeBase/Dockerfile)
8+
9+
## How to use this image
10+
11+
First, you will need a Selenium Grid Hub that the Node will connect to.
12+
13+
```
14+
$ docker run -d -P --name selenium-hub selenium/hub
15+
```
16+
17+
Once the hub is up and running will want to launch nodes that can run tests. You can run as many nodes as you wish.
18+
19+
```
20+
$ docker run -d --link selenium-hub:hub selenium/node-firefox
21+
```
22+
23+
## What is Selenium?
24+
_Selenium automates browsers._ That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.
25+
26+
Selenium has the support of some of the largest browser vendors who have taken (or are taking) steps to make Selenium a native part of their browser. It is also the core technology in countless other browser automation tools, APIs and frameworks.
27+
28+
See the Selenium [site](http://docs.seleniumhq.org/) for documation on usage within your test code.
29+
30+
## License
31+
32+
View [license information](https://code.google.com/p/selenium/source/browse/COPYING) for the software contained in this image.
33+
34+
## Getting Help
35+
36+
### User Group
37+
38+
The first place where people ask for help about Selenium is the [Official User Group](https://groups.google.com/forum/#!forum/selenium-users). Here, you'll find that most of the time, someone already found the problem you are facing right now, and usually reached the solution for which you are looking.
39+
40+
_Note: Please make sure to search the group before asking for something. Your question likely won't get answered if it was previously answered in another discussion!_
41+
42+
### Chat Room
43+
44+
The best place to ask for help is the user group (because they also keep the information accessible for others to read in the future). However, if you have a very important (or too simple) issue that needs a solution ASAP, you can always enter the IRC chat room. You might just find someone ready to help on `#selenium` at [Freenode](https://freenode.net/).
45+
46+
### Issues
47+
48+
If you have any problems with or questions about this image, please contact us through a [Github issue](https://github.com/SeleniumHQ/docker-selenium/issues). If you have any problems with or questions about Selenium, please contact us through Selenium's [But Tracker](https://code.google.com/p/selenium/issues/list).

NodeChrome/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Selenium Node configured to run Google Chrome.
44

5+
## Dockerfile
6+
7+
[`selenium/node-chrome` Dockerfile](https://github.com/SeleniumHQ/docker-selenium/blob/master/NodeChrome/Dockerfile)
8+
59
## How to use this image
610

711
First, you will need a Selenium Grid Hub that the Node will connect to.
@@ -22,3 +26,23 @@ _Selenium automates browsers._ That's it! What you do with that power is entirel
2226
Selenium has the support of some of the largest browser vendors who have taken (or are taking) steps to make Selenium a native part of their browser. It is also the core technology in countless other browser automation tools, APIs and frameworks.
2327

2428
See the Selenium [site](http://docs.seleniumhq.org/) for documation on usage within your test code.
29+
30+
## License
31+
32+
View [license information](https://code.google.com/p/selenium/source/browse/COPYING) for the software contained in this image.
33+
34+
## Getting Help
35+
36+
### User Group
37+
38+
The first place where people ask for help about Selenium is the [Official User Group](https://groups.google.com/forum/#!forum/selenium-users). Here, you'll find that most of the time, someone already found the problem you are facing right now, and usually reached the solution for which you are looking.
39+
40+
_Note: Please make sure to search the group before asking for something. Your question likely won't get answered if it was previously answered in another discussion!_
41+
42+
### Chat Room
43+
44+
The best place to ask for help is the user group (because they also keep the information accessible for others to read in the future). However, if you have a very important (or too simple) issue that needs a solution ASAP, you can always enter the IRC chat room. You might just find someone ready to help on `#selenium` at [Freenode](https://freenode.net/).
45+
46+
### Issues
47+
48+
If you have any problems with or questions about this image, please contact us through a [Github issue](https://github.com/SeleniumHQ/docker-selenium/issues). If you have any problems with or questions about Selenium, please contact us through Selenium's [But Tracker](https://code.google.com/p/selenium/issues/list).

NodeChromeDebug/README.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Selenium Grid Node - Chrome Debug
2+
3+
_This image is only intended for development purposes!_ Runs a Selenium Grid Node with a VNC Server to allow you to visually see the browser being automated. Since it runs additional services to support this it is too heavy weight for usage within a Selenium Grid cluster.
4+
5+
## Dockerfile
6+
7+
[`selenium/node-chrome-debug` Dockerfile](https://github.com/SeleniumHQ/docker-selenium/blob/master/NodeChromeDebug/Dockerfile)
8+
9+
## How to use this image
10+
11+
First, you will need a Selenium Grid Hub that the Node will connect to.
12+
13+
```
14+
$ docker run -d -P --name selenium-hub selenium/hub
15+
```
16+
17+
Once the hub is up and running will want to launch nodes that can run tests.
18+
19+
```
20+
$ docker run -d -P --link selenium-hub:hub selenium/node-chrome-debug
21+
```
22+
23+
You can acquire the port that the VNC server is exposed to by running:
24+
25+
``` bash
26+
$ docker port <container-name|container-id> 5900
27+
#=> 0.0.0.0:49338
28+
```
29+
30+
Using RealVNC you can look in view only mode, to avoid accidentally messing up your tests, utilizing our [vncview script](https://github.com/SeleniumHQ/docker-selenium/blob/master/bin/vncview).
31+
32+
``` bash
33+
$ ./bin/vncview 127.0.0.1:49338
34+
```
35+
36+
If you are running Boot2Docker on Mac then you already have a [VNC client](http://www.davidtheexpert.com/post.php?id=5) built-in. You can connect by entering `vnc://<boot2docker-ip>:49160` in Safari or [Alfred](http://www.alfredapp.com/)
37+
38+
When you are prompted for the password it is __secret__. If you wish to change this then you should either change it in the `/NodeBase/Dockerfile` and build the images yourself, or you can define a docker image that derives from the posted ones which reconfigures it:
39+
40+
``` dockerfile
41+
FROM selenium/node-chrome-debug:2.44.0
42+
43+
RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd
44+
```
45+
46+
## What is Selenium?
47+
_Selenium automates browsers._ That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.
48+
49+
Selenium has the support of some of the largest browser vendors who have taken (or are taking) steps to make Selenium a native part of their browser. It is also the core technology in countless other browser automation tools, APIs and frameworks.
50+
51+
See the Selenium [site](http://docs.seleniumhq.org/) for documation on usage within your test code.
52+
53+
## License
54+
55+
View [license information](https://code.google.com/p/selenium/source/browse/COPYING) for the software contained in this image.
56+
57+
## Getting Help
58+
59+
### User Group
60+
61+
The first place where people ask for help about Selenium is the [Official User Group](https://groups.google.com/forum/#!forum/selenium-users). Here, you'll find that most of the time, someone already found the problem you are facing right now, and usually reached the solution for which you are looking.
62+
63+
_Note: Please make sure to search the group before asking for something. Your question likely won't get answered if it was previously answered in another discussion!_
64+
65+
### Chat Room
66+
67+
The best place to ask for help is the user group (because they also keep the information accessible for others to read in the future). However, if you have a very important (or too simple) issue that needs a solution ASAP, you can always enter the IRC chat room. You might just find someone ready to help on `#selenium` at [Freenode](https://freenode.net/).
68+
69+
### Issues
70+
71+
If you have any problems with or questions about this image, please contact us through a [Github issue](https://github.com/SeleniumHQ/docker-selenium/issues). If you have any problems with or questions about Selenium, please contact us through Selenium's [But Tracker](https://code.google.com/p/selenium/issues/list).

NodeDebug/README.template.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Selenium Grid Node - ##BROWSER## Debug
2+
3+
_This image is only intended for development purposes!_ Runs a Selenium Grid Node with a VNC Server to allow you to visually see the browser being automated. Since it runs additional services to support this it is too heavy weight for usage within a Selenium Grid cluster.
4+
5+
## Dockerfile
6+
7+
[`selenium/##BASE##-debug` Dockerfile](https://github.com/SeleniumHQ/docker-selenium/blob/master/##FOLDER##/Dockerfile)
8+
9+
## How to use this image
10+
11+
First, you will need a Selenium Grid Hub that the Node will connect to.
12+
13+
```
14+
$ docker run -d -P --name selenium-hub selenium/hub
15+
```
16+
17+
Once the hub is up and running will want to launch nodes that can run tests.
18+
19+
```
20+
$ docker run -d -P --link selenium-hub:hub selenium/##BASE##-debug
21+
```
22+
23+
You can acquire the port that the VNC server is exposed to by running:
24+
25+
``` bash
26+
$ docker port <container-name|container-id> 5900
27+
#=> 0.0.0.0:49338
28+
```
29+
30+
Using RealVNC you can look in view only mode, to avoid accidentally messing up your tests, utilizing our [vncview script](https://github.com/SeleniumHQ/docker-selenium/blob/master/bin/vncview).
31+
32+
``` bash
33+
$ ./bin/vncview 127.0.0.1:49338
34+
```
35+
36+
If you are running Boot2Docker on Mac then you already have a [VNC client](http://www.davidtheexpert.com/post.php?id=5) built-in. You can connect by entering `vnc://<boot2docker-ip>:49160` in Safari or [Alfred](http://www.alfredapp.com/)
37+
38+
When you are prompted for the password it is __secret__. If you wish to change this then you should either change it in the `/NodeBase/Dockerfile` and build the images yourself, or you can define a docker image that derives from the posted ones which reconfigures it:
39+
40+
``` dockerfile
41+
FROM selenium/##BASE##-debug:2.44.0
42+
43+
RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd
44+
```
45+
46+
## What is Selenium?
47+
_Selenium automates browsers._ That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.
48+
49+
Selenium has the support of some of the largest browser vendors who have taken (or are taking) steps to make Selenium a native part of their browser. It is also the core technology in countless other browser automation tools, APIs and frameworks.
50+
51+
See the Selenium [site](http://docs.seleniumhq.org/) for documation on usage within your test code.
52+
53+
## License
54+
55+
View [license information](https://code.google.com/p/selenium/source/browse/COPYING) for the software contained in this image.
56+
57+
## Getting Help
58+
59+
### User Group
60+
61+
The first place where people ask for help about Selenium is the [Official User Group](https://groups.google.com/forum/#!forum/selenium-users). Here, you'll find that most of the time, someone already found the problem you are facing right now, and usually reached the solution for which you are looking.
62+
63+
_Note: Please make sure to search the group before asking for something. Your question likely won't get answered if it was previously answered in another discussion!_
64+
65+
### Chat Room
66+
67+
The best place to ask for help is the user group (because they also keep the information accessible for others to read in the future). However, if you have a very important (or too simple) issue that needs a solution ASAP, you can always enter the IRC chat room. You might just find someone ready to help on `#selenium` at [Freenode](https://freenode.net/).
68+
69+
### Issues
70+
71+
If you have any problems with or questions about this image, please contact us through a [Github issue](https://github.com/SeleniumHQ/docker-selenium/issues). If you have any problems with or questions about Selenium, please contact us through Selenium's [But Tracker](https://code.google.com/p/selenium/issues/list).

NodeDebug/generate.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash
22
FOLDER=../$1
33
BASE=$2
4-
VERSION=$3
4+
BROWSER=$3
5+
VERSION=$4
56

67
rm -rf $FOLDER
78
mkdir -p $FOLDER
@@ -17,3 +18,8 @@ sed 's/^xvfb-run/sudo -E -i -u seluser \\\
1718
mv $FOLDER/entry_point.sh.tmp $FOLDER/entry_point.sh
1819

1920
cat ./debug-script.sh >> $FOLDER/entry_point.sh
21+
22+
cat ./README.template.md \
23+
| sed "s/##BROWSER##/$BROWSER/" \
24+
| sed "s/##BASE##/$BASE/" \
25+
| sed "s/##FOLDER##/$1/" > $FOLDER/README.md

0 commit comments

Comments
 (0)