![]() Base/Dockerfileīuild VERSION=local make # e.g. Base/Dockerfile) sed -i ' s/amd64/arm64/g '. Then I commented out Customize sources for apt-get section in. When I manually built selenium/base image to investigate the reason why my build failed, I found it is because apt-get update failed. Comment out "Customize sources for apt-get" section However, you need some extra actions to build for arm64 before you run the line. Then why don't you build your own image from its Dockerfile?įirst, clone the repo to your arm64 device.Īccording to Building the images section of the README, you can build everything by running: make build VERSION=local The official images of docker- selenium don't support linux/arm64 architecture. (accessed on 7) Selenium Server ※ NOT work docker buildx build -platform linux/amd64,linux/arm64 -push -t yourname/yourtag. # Install Selenium RUN pip install -upgrade pip \īuild it for multiplatform. # bullseye: worked # buster: got an error "lsb_release: command not found" # I don't know the reason ARG VERSION=.110-0ubuntu0.18.04.1 Search = driver.find_element(By.NAME, 'q') Options.add_argument( '-no-sandbox') # An error will occur without this lineĭriver = webdriver.Chrome(options=options) Sample Script from selenium import webdriverįrom import Byįrom import Keys #! /bin/bash # Update on 0 # dependencies deb files of chromium-browser(depencies also needed) and chromium-chromedriver from the above URL. Install chromium-browser and chromium-chromedriverĭownload. The following tasks should be done in the container. Comment out "Customize sources for apt-get" section.Install chromium-browser and chromium-chromedriver.That's why I'm writing how to manage to do Selenium on the device. I tried another way, which is downloading chromedriver from , I couldn't because any image of SeleniumHQ/docker-selenium doesn't support arm64. When I tried to use Selenium on RaspberryPi whose OS is Ubuntu,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |