docker-compose


Specify browser version for Selenium nodes into docker-compose.yml


I am currently setting up a Selenium Grid through Docker, and more specifically via docker-compose. I am very new to those tools, so I apologize if the answer is obvious, but I couldn't solve it by myself with the doc nor any SO question.
The problem is: I was planning on using official Selenium images (selenium/hub, selenium/node-chrome and selenium/node-firefox), but I can't figure out how to specify the browser version of each node.
I know that for instance, my node-chrome image contains a specific version of Chrome, depending on its Dockerfile, but I would like to make that version visible from the hub, so that I can run my tests against several versions of each browser, i.e. several nodes.
If I'm not clear enough, here is my current hub, with indication of what I am refering to :
Hub configuration overview
Detailed node configuration
As you might guess, my docker-compose.yml is very simple at the moment :
version: "2.0"
networks:
sel_grid:
driver: bridge
services:
hub:
image: selenium/hub:3.0.1-barium
ports:
- "4444:4444"
container_name: hub
networks:
- sel_grid
node_chrome:
image: selenium/node-chrome:3.0.1-barium
environment:
- HUB_PORT_4444_TCP_ADDR=hub
- HUB_PORT_4444_TCP_PORT=4444
depends_on:
- hub
networks:
- sel_grid
node_firefox:
image: selenium/node-firefox:3.0.1-barium
environment:
- HUB_PORT_4444_TCP_ADDR=hub
- HUB_PORT_4444_TCP_PORT=4444
depends_on:
- node_chrome
networks:
- sel_grid
... and my compose version is
$ docker-compose --version
docker-compose version 1.9.0, build 2585387
NOTE
My current configuration works well, the only thing I would get is the possibility to handle browser versions through a docker-compose.yml. So any comment about other aspects are welcome as I'm kind of a newbie to Docker, but my principal concern remains the browser versioning.
By the way, I have already tried to build my own images of the nodes, based on selenium/node-base with custom Dockerfile, but the browser still won't specify his version from the outside, if not simply throwing an error during installation.
Thanks for any help !

Related Links

How to run ad hoc docker compose commands in Ansible?
Using custom hostnames for docker local development containers
Changing the network name?
Let external container know about subnets created by multiple docker-compose projects
How to monitor / discover more docker containers with prometheus
two docker-compose .yml in the same network with COMPOSE_PROJECT_NAME
docker compose 3.1(swarm), secrets, ssl and nginx
What is the version directive for?
How to run docker-compose up -d at system start up?
In Docker Compose can I have services exiting
Docker compose - secrets Additional property secrets is not allowed
docker-compose mounted volume remain
Should I do anything after upgrading docker-compose?
docker caddy proxy not forwarding
docker share OS volume between services
How dynamic map service name to ENV var

Categories

HOME
spring-boot
twitter-bootstrap
netty
oracle-sqldeveloper
window.open
highmaps
ubuntu-14.04
xss
grid
msbi
angularjs-ng-repeat
select2
velocity
vichuploaderbundle
distinct
guidewire
http-status-codes
watson-dialog
console-application
responsive
dompdf
game-engine
reportlab
jquery-easyui
alert
accordion
ajaxcontroltoolkit
pushbullet
inline-assembly
onclicklistener
email-client
deployment-descriptor
windows-10-mobile
ipython-parallel
edirectory
multilanguage
blockly
node-soap
aweber
ragel
leaderboard
respect-validation
mapquest
pygraphviz
iterm2
android-graphview
directadmin
compiler-warnings
f#-fake
serialversionuid
ear
jscoverage
enet
playframework-1.x
xamarin-test-cloud
was
esprima
gevent
firebase-polymer
nimbus
gdi
queuing
php-java-bridge
aws-kms
mod
bbedit
skbio
jersey-test-framework
matlab-engine
app-data
sdkman
javapackager
personality-insights
roslyn-code-analysis
targetprocess
nfa
fedena
jsonmodel
worklight-appcenter
time-frequency
drawable
telerik-appbuilder
banana-pi
reactjs-native
sendy
smartxls
opencobol
cvi
kuka-krl
carrier
vbaccelerator
logo-lang
complete
ardor3d
xcode5.1
usersettings
pyxplot
infinity.js
coinbase-php
metapost
configurationsection
google-email-audit-api
stl-algorithm
openwrap
object-tag
zipstream
nyromodal
simultaneous
silverlight-2.0
for-xml
hp-trim
lts
onresize
httpbrowsercapabilities

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App