[🚀 Feature]: multi arch build or merge in SeleniumHQ/docker-selenium #2
Description
Feature and motivation
As I mentioned in the #1, I would like to use this image not only on arm64
platform, but also on amd64
based arch, in order to make it useful in docker-compose.yml
file/projects.
In general, I would love to have this changes at SeleniumHQ#1076. But, I do not know how to help here.
I can see the images from https://github.com/sj26/docker-selenium, they are build for
arm
andamd
. https://hub.docker.com/layers/seleniarm/node-chromium/4.0.0-beta-1-20210215/images/sha256-148f4749119f950d33229f0ec37eb772a55de97491b462830bffc46981d39869?context=exploreAnd these images we can use in our
docker-compose.yml
, without any hack. But they are not up-to-date. So, that why I am saying it would be better if these changes from here, would be included in https://github.com/SeleniumHQ/docker-selenium.And thanks for this great work and effort! 👍🏼
Expected behaviour, when I use this image in docker-compose.yml
:
version: '3.9'
services:
...
selenium_hub:
image: seleniarm/hub:4.0.0-beta-1-20210215
ports:
- 4442:4442
- 4443:4443
- 4444:4444
chrome:
image: seleniarm/node-chromium:4.0.0-beta-1-20210215
shm_size: 2gb
ports:
- 5555:5555
depends_on:
- selenium_hub
It should build the services on arm
and amd
arch based host platform.
Note: the node-chromium:4.0.0-beta-1-20210215
image was build for multi arch.
Possible solutions:
- Merge in existed repository
SeleniumHQ/docker-selenium
- Build image with multi arch, e.g.
arm
andamd
Usage example with images from selenium
version: '3.9'
services:
...
selenium_hub:
image: selenium/hub:4
ports:
- 4442:4442
- 4443:4443
- 4444:4444
chrome:
image: docker pull selenium/node-chromium:4
shm_size: 2gb
ports:
- 5555:5555
depends_on:
- selenium_hub