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

Swarm scheduling not working as expected using filters in compose file
issues in buiding Slate with Docker
Invalid type error in Docker Compose
Django cookiecutter with Docker add pip package
Docker Compose + Swarm + Machine Networking issue
docker-compose build image parameters --force-rm --pull
linking 2 containers through docker compose
Files created by manage.py commands not chown'd from root user
Is it possible to create an intermediate image within docker-compose?
docker-compose service listen on specified interface
Does Docker-Compose allow overwriting of ports when using extends?
Jhipster Docker-compose conflict
Build multiple images with Docker Compose?
JHipster Cassandra Docker Build
Defining project name inside docker-compose configuration
Docker-compose named mounted volume

Categories

HOME
qlikview
joomla
logging
excel-formula
kendo-ui-angular2
teradata
ftp
stanford-nlp
jenkins-pipeline
openacc
liquibase
hex
query-string
annyang
fetch
virtualenv
element
webseal
game-engine
reportlab
jquery-easyui
bootstrap-datetimepicker
polybase
hololens
quality-center
waterfall
custom-fields
r-factor
drawrect
akamai
jcr
unity3d-5
circle
asp.net-webhooks
maven-2
lighting
device-driver
linkurious
aspose.pdf
socketcluster
f#-fake
mef
monaca
audio-fingerprinting
dynamic-linking
aws-rds
multi-select
rmq
breadcrumbs
lattice
alarmmanager
glade
symantec
normalisation
gdi
weblogic-maven-plugin
kik
wizard
fadein
yfiles
magnet-uri
personality-insights
cyberduck
joomla3.3
callfire
sicstus-prolog
google-experiments
register-allocation
xmlserializer
rpt
visual-c#-express-2010
webshim
image-preloader
fastcgi-mono-server
git-subtree
maven-javadoc-plugin
kendo-window
friendly-url
select2-rails
qmainwindow
magicsuggest
blotter
dnsbl
m3u
doxia
blackberry-eclipse-plugin
google-email-audit-api
umfpack
zend-validate
log-shipping
youtube.net-api
meego-harmattan
mass-emails
nscharacterset
dgml
urlscan

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